';
print '';
- print substr($commit['time'], 0, 10);
+ print substr($commit['svn_time'], 0, 10);
print ' | ';
print '';
print anchor (
- "/source/file/{$commit['repo']}/{$xdot}/{$commit['rev']}",
- $commit['repo']);
+ "/source/file/{$commit['svn_repo']}/{$xdot}/{$commit['svn_rev']}",
+ $commit['svn_repo']);
print ' | ';
print '';
print anchor (
- "/source/revision/{$commit['repo']}/{$xdot}/{$commit['rev']}",
- $commit['rev']);
+ "/source/revision/{$commit['svn_repo']}/{$xdot}/{$commit['svn_rev']}",
+ $commit['svn_rev']);
print ' | ';
print '';
- print htmlspecialchars ($commit['author']);
+ print htmlspecialchars ($commit['svn_author']);
print ' | ';
print '
';
print '
+
+
+
+load->view ('taskbar'); ?>
+
+
+
+load->view (
+ 'projectbar',
+ array (
+ 'project' => NULL,
+ 'site' => NULL,
+ 'pageid' => 'sitelog',
+ 'ctxmenuitems' => array ()
+ )
+);
+?>
+
+
+
+
+
+
+= $this->lang->line ('Change log') ?>
+
+
+
+
+
+converter->AsciiToHex ('.');
+
+ $rowclasses = array ('odd', 'even');
+ $rowcount = 0;
+
+ foreach ($sitelogs as $sitelog)
+ {
+ // TODO: use time... and inspect type then may use svn_time.
+ $date = substr($sitelog['svn_time'], 0, 10);
+ $time = substr($sitelog['svn_time'], 11, 5);
+ if ($curdate != $date)
+ {
+ print " |
";
+ print "$date |
";
+ $curdate = $date;
+ $rowcount = 0;
+ }
+
+ print "";
+ $rowcount++;
+ print '' . $time . ' | ';
+
+ print '';
+ print anchor (
+ "/source/file/{$sitelog['projectid']}/{$xdot}/{$sitelog['svn_rev']}",
+ $sitelog['projectid']);
+ print ' | ';
+
+ print '';
+
+ if ($sitelog['type'] == 'svn-commit')
+ {
+ print '';
+ print anchor (
+ "/source/revision/{$sitelog['projectid']}/{$xdot}/{$sitelog['svn_rev']}",
+ "r{$sitelog['svn_rev']}");
+ print ' committed by ';
+ print htmlspecialchars ($sitelog['svn_author']);
+ print '';
+
+ print '';
+ print htmlspecialchars ($sitelog['svn_message']);
+ print ' ';
+ /*
+ print ' ';
+ print '';
+ $sm = htmlspecialchars ($sitelog['svn_message']);
+ print str_replace (array ("\r\n", "\n", "\r"), ' ', $sm);
+ print '';
+ */
+ }
+
+ print ' | ';
+ print '
';
+ }
+?>
+
+
+
+
+
+
+load->view ('footer'); ?>
+
+
+
+
+
diff --git a/codepot/src/config.php.in b/codepot/src/config.php.in
index ddc45c3a..4ef55cb7 100644
--- a/codepot/src/config.php.in
+++ b/codepot/src/config.php.in
@@ -28,9 +28,11 @@ function load_ini ($file)
array ('login_model', 'string', 'LdapLoginModel'),
array ('sysadmin_userids', 'string', ''),
array ('max_upload_size', 'string', '10000'), // kbytes
+ array ('max_latest_projects', 'integer', 10),
+ array ('max_site_logs_per_page', 'integer', 50),
+
array ('max_svn_commits', 'integer', 10),
array ('max_svn_commits_in_project', 'integer', 5),
- array ('max_latest_projects', 'integer', 10),
array ('database_username', 'string', ''),
array ('database_password', 'string', ''),
diff --git a/codepot/src/css/common.css b/codepot/src/css/common.css
index 4771bf64..7b154b3b 100644
--- a/codepot/src/css/common.css
+++ b/codepot/src/css/common.css
@@ -316,9 +316,7 @@ pre.prettyprint .nocode a:hover {
.content .sidebar {
font-size: 0.9em;
float: right;
- width: 20em;
- //padding: 5px;
- //margin-right: 2px;
+ width: 22em;
}
.content .sidebar .box {
diff --git a/codepot/src/css/project.css b/codepot/src/css/project.css
index 931109cc..330a224c 100644
--- a/codepot/src/css/project.css
+++ b/codepot/src/css/project.css
@@ -10,35 +10,100 @@
}
#user_home_mainarea_sidebar_svn_commits_table {
- margin: 0;
- padding: 0;
+ border-collapse: collapse;
}
#user_home_mainarea_sidebar_svn_commits_table tr.odd {
background-color: #bbccef;
}
+#user_home_mainarea_sidebar_svn_commits_table tr.odd td {
+ width: 1px;
+ white-space: nowrap;
+}
+
#user_home_mainarea_sidebar_svn_commits_table tr.even {
background-color: inherit;
+ font-size: 0.9em;
+ font-style: italic;
+}
+
+/*-----------------------------------------------
+ * user sidelog view
+ *-----------------------------------------------*/
+#user_sitelog_mainarea_result {
+ overflow: auto;
+}
+
+#user_sitelog_mainarea_result_table {
+ border-collapse: collapse;
+}
+
+#user_sitelog_mainarea_result_table a {
+ text-decoration: none;
+}
+
+#user_sitelog_mainarea_result_table td {
+ vertical-align: top;
+ white-space: nowrap;
+}
+
+#user_sitelog_mainarea_result_table td.break {
+ font-size: 0.5em;
+}
+
+#user_sitelog_mainarea_result_table td.date {
+ font-weight: bold;
+ background-color: #bbccef;
+}
+
+#user_sitelog_mainarea_result_table td.time {
+ width: 1px;
+ color: #777777;
+}
+
+#user_sitelog_mainarea_result_table td.details {
+ white-space: normal;
+}
+
+#user_sitelog_mainarea_result_table td.details .description {
+ font-style: italic;
+}
+
+#user_sitelog_mainarea_result_table td.details pre.message {
+ border: 0;
+ margin: 1px;
+ background-color: inherit;
+ white-space: pre-wrap;
+}
+
+#user_sitelog_mainarea_result_table td.pages {
+ padding-top: 1em;
+ text-align: center;
+ font-weight: bold;
}
/*-----------------------------------------------
* project home view
*-----------------------------------------------*/
#project_home_mainarea_sidebar_svn_commits_table {
- margin: 0;
- padding: 0;
+ border-collapse: collapse;
}
#project_home_mainarea_sidebar_svn_commits_table tr.odd {
background-color: #bbccef;
}
-#project_home_mainarea_sidebar_svn_commits_table tr.even {
- background-color: inherit;
+#project_home_mainarea_sidebar_svn_commits_table tr.odd td {
+ width: 1px;
+ white-space: nowrap;
}
-
+#project_home_mainarea_sidebar_svn_commits_table tr.even {
+ background-color: inherit;
+ //font-size: 0.9em;
+ font-style: italic;
+}
/*-----------------------------------------------
* project file home view