changed the project anchor for code commit in the log view

This commit is contained in:
hyung-hwan 2010-03-03 13:30:34 +00:00
parent 2d57f9e77e
commit 50d8cecdae
5 changed files with 32 additions and 34 deletions

View File

@ -55,10 +55,10 @@ $lang['Wiki'] = 'Wiki';
$lang['Wikis'] = 'Wikis';
$lang['MSG_LOG_COMMIT_BY'] = 'committed by %s';
$lang['MSG_LOG_CREATE_BY'] = 'created by %s';
$lang['MSG_LOG_DELETE_BY'] = 'deleted by %s';
$lang['MSG_LOG_UPDATE_BY'] = 'updated by %s';
$lang['MSG_LOG_COMMIT_BY'] = 'Committed by %s';
$lang['MSG_LOG_CREATE_BY'] = 'Created by %s';
$lang['MSG_LOG_DELETE_BY'] = 'Deleted by %s';
$lang['MSG_LOG_UPDATE_BY'] = 'Updated by %s';
$lang['MSG_NO_DIFF'] = 'No difference found';
$lang['MSG_NO_FILES_AVAIL'] = 'No files available';

View File

@ -84,7 +84,7 @@ $this->load->view (
<div class="box">
<div class="boxtitle">
<?= anchor ("source/history/{$project->id}", $this->lang->line('Change log')) ?>
<?= $this->lang->line('Change log') ?>
</div>
<table id="project_home_mainarea_sidebar_log_table">
<?php
@ -96,10 +96,10 @@ $this->load->view (
$x = $log['message'];
print '<tr class="odd">';
print '<td>';
print '<td class="date">';
print substr($x['time'], 5, 5);
print '</td>';
print '<td>';
print '<td class="object">';
print anchor (
"/source/revision/{$x['repo']}/{$xdot}/{$x['rev']}",
"r{$x['rev']}");
@ -110,7 +110,7 @@ $this->load->view (
print '<tr class="even">';
print '<td></td>';
print '<td colspan=1>';
print '<td colspan=1 class="details">';
print '<span class="description">';
$fmt = $this->lang->line (
'MSG_LOG_'.strtoupper($log['action']).'_BY');
@ -127,11 +127,11 @@ $this->load->view (
else
{
print '<tr class="odd">';
print '<td>';
print '<td class="date">';
print date ('m-d', strtotime($log['createdon']));
print '</td>';
print '<td>';
print '<td class="object">';
$uri = '';
if ($log['type'] == 'project')
{
@ -155,7 +155,7 @@ $this->load->view (
print '<tr class="even">';
print '<td></td>';
print '<td colspan=1>';
print '<td colspan=1 class="details">';
print '<span class="description">';
$fmt = $this->lang->line (
'MSG_LOG_'.strtoupper($log['action']).'_BY');

View File

@ -93,15 +93,18 @@ foreach ($latest_projects as $project)
$x = $log['message'];
print '<tr class="odd">';
print '<td>';
print '<td class="date">';
print substr($x['time'], 5, 5);
print '</td>';
print '<td>';
print '<td class="projectid">';
/*
print anchor (
"/source/file/{$x['repo']}/{$xdot}/{$x['rev']}",
$x['repo']);
*/
print anchor ("/project/home/{$x['repo']}", $x['repo']);
print '</td>';
print '<td>';
print '<td class="object">';
print anchor (
"/source/revision/{$x['repo']}/{$xdot}/{$x['rev']}",
"r{$x['rev']}");
@ -112,7 +115,7 @@ foreach ($latest_projects as $project)
print '<tr class="even">';
print '<td></td>';
print '<td colspan=2>';
print '<td colspan=2 class="details">';
print '<span class="description">';
$fmt = $this->lang->line (
'MSG_LOG_'.strtoupper($log['action']).'_BY');
@ -129,15 +132,15 @@ foreach ($latest_projects as $project)
else
{
print '<tr class="odd">';
print '<td>';
print '<td class="date">';
print date ('m-d', strtotime($log['createdon']));
print '</td>';
print '<td>';
print '<td class="project">';
print anchor ("/project/home/{$log['projectid']}", $log['projectid']);
print '</td>';
print '<td>';
print '<td class="object">';
$uri = '';
if ($log['type'] == 'project')
{
@ -161,7 +164,7 @@ foreach ($latest_projects as $project)
print '<tr class="even">';
print '<td></td>';
print '<td colspan=2>';
print '<td colspan=2 class="details">';
print '<span class="description">';
$fmt = $this->lang->line (
'MSG_LOG_'.strtoupper($log['action']).'_BY');

View File

@ -82,18 +82,7 @@ $this->load->view (
print '<td class="time">' . $time . '</td>';
print '<td class="projectid">';
if ($log['type'] == 'code' && $log['action'] == 'commit')
{
print anchor (
"/source/file/{$code['repo']}/{$xdot}/{$code['rev']}",
$log['projectid']);
}
else
{
print anchor (
"/project/home/{$log['projectid']}",
$log['projectid']);
}
print anchor ("/project/home/{$log['projectid']}", $log['projectid']);
print '</td>';

View File

@ -18,10 +18,13 @@
}
#user_home_mainarea_sidebar_log_table tr.odd td {
width: 1px;
white-space: nowrap;
}
#user_home_mainarea_sidebar_log_table tr.odd td.date {
width: 1px;
}
#user_home_mainarea_sidebar_log_table tr.even {
background-color: inherit;
}
@ -104,10 +107,13 @@
}
#project_home_mainarea_sidebar_log_table tr.odd td {
width: 1px;
white-space: nowrap;
}
#project_home_mainarea_sidebar_log_table tr.odd td.date {
width: 1px;
}
#project_home_mainarea_sidebar_log_table tr.even {
background-color: inherit;
/*font-size: 0.9em;*/