styled up some pages

This commit is contained in:
hyung-hwan 2015-04-24 02:42:12 +00:00
parent acbb46dc3d
commit 35a72f7688
13 changed files with 145 additions and 206 deletions

View File

@ -497,7 +497,7 @@ $this->load->view (
$blame_anchor_text = '<i class="fa fa-bomb"></i> ' . $this->lang->line('Blame'); $blame_anchor_text = '<i class="fa fa-bomb"></i> ' . $this->lang->line('Blame');
print '<table id="code_folder_mainarea_result_table">'; print '<table id="code_folder_mainarea_result_table" class="fit-width-result-table">';
print '<tr class="heading">'; print '<tr class="heading">';
print '<th>' . $this->lang->line('Name') . '</th>'; print '<th>' . $this->lang->line('Name') . '</th>';
print '<th>' . $this->lang->line('Revision') . '</th>'; print '<th>' . $this->lang->line('Revision') . '</th>';

View File

@ -101,9 +101,9 @@ $this->load->view (
print "<img src='{$graph_url}' />"; print "<img src='{$graph_url}' />";
?> ?>
<table id="code_history_mainarea_result_table"> <table id="code_history_mainarea_result_table" class="full-width-result-table">
<tr class='heading'> <tr class='full-width-result-table-header'>
<th><?php print $this->lang->line('Revision')?></th> <th colspan=2><?php print $this->lang->line('Revision')?></th>
<th><?php print $this->lang->line('Committer')?></th> <th><?php print $this->lang->line('Committer')?></th>
<th><?php print $this->lang->line('Date')?></th> <th><?php print $this->lang->line('Date')?></th>
<th><?php print $this->lang->line('Message')?></th> <th><?php print $this->lang->line('Message')?></th>
@ -136,6 +136,11 @@ $this->load->view (
} }
print '</td>'; print '</td>';
print '<td>';
print anchor ("code/revision/{$project->id}/{$xfullpath}/{$h['rev']}",
'<i class="fa fa-newspaper-o"></i>');
print '</td>';
print '<td>'; print '<td>';
// Repository migration from googlecode reveales that it did not put // Repository migration from googlecode reveales that it did not put
// 'author' for initial project creation. So I've added the following check. // 'author' for initial project creation. So I've added the following check.
@ -154,11 +159,8 @@ $this->load->view (
print '</td>'; print '</td>';
print '<td>'; print '<td>';
print anchor ("code/revision/{$project->id}/{$xfullpath}/{$h['rev']}",
$this->lang->line('Details'));
if ($file['type'] == 'file') if ($file['type'] == 'file')
{ {
print ' | ';
print anchor ("code/blame/{$project->id}/{$xfullpath}/{$h['rev']}", print anchor ("code/blame/{$project->id}/{$xfullpath}/{$h['rev']}",
'<i class="fa fa-bomb"></i> ' . $this->lang->line('Blame')); '<i class="fa fa-bomb"></i> ' . $this->lang->line('Blame'));
print ' | '; print ' | ';

View File

@ -406,7 +406,7 @@ $history = $file['history'];
<div id="code_revision_mainarea_result_files" class="collapsible-box"> <div id="code_revision_mainarea_result_files" class="collapsible-box">
<div class="collapsible-box-header"><?php print $this->lang->line('Files')?></div> <div class="collapsible-box-header"><?php print $this->lang->line('Files')?></div>
<div id="code_revision_mainarea_result_files_table_container" class="collapsible-box-panel"> <div id="code_revision_mainarea_result_files_table_container" class="collapsible-box-panel">
<table id="code_revision_mainarea_result_files_table"> <table id="code_revision_mainarea_result_files_table" class="fit-width-result-table">
<?php <?php
/* /*
print '<tr class="heading">'; print '<tr class="heading">';
@ -448,7 +448,7 @@ $history = $file['history'];
<div id="code_revision_mainarea_result_properties" class="collapsible-box"> <div id="code_revision_mainarea_result_properties" class="collapsible-box">
<div class="collapsible-box-header"><?php print $this->lang->line('CODE_PROPERTIES');?></div> <div class="collapsible-box-header"><?php print $this->lang->line('CODE_PROPERTIES');?></div>
<div id="code_revision_mainarea_result_properties_table_container" class="collapsible-box-panel"> <div id="code_revision_mainarea_result_properties_table_container" class="collapsible-box-panel">
<table id="code_revision_mainarea_result_properties_table"> <table id="code_revision_mainarea_result_properties_table" class="fit-width-result-table">
<?php <?php
$rowclasses = array ('odd', 'even'); $rowclasses = array ('odd', 'even');
$rowcount = 0; $rowcount = 0;

View File

@ -99,15 +99,16 @@ else
usort ($files, 'comp_files'); usort ($files, 'comp_files');
$download_anchor_text = '<i class="fa fa-download"></i> ' . $this->lang->line('Download'); //$download_anchor_text = '<i class="fa fa-download"></i> ' . $this->lang->line('Download');
$download_anchor_text = '<i class="fa fa-download"></i>';
print '<table id="file_home_mainarea_result_table">'; print '<table id="file_home_mainarea_result_table" class="fit-width-result-table">';
print '<tr class="heading">'; print '<tr class="heading">';
print '<th>' . $this->lang->line('Tag') . '</th>'; print '<th>' . $this->lang->line('Tag') . '</th>';
print '<th>' . $this->lang->line('Name') . '</th>'; print '<th colspan=2>' . $this->lang->line('Name') . '</th>';
print '<th>' . $this->lang->line('Summary') . '</th>'; print '<th>' . $this->lang->line('Summary') . '</th>';
print '<th>' . $this->lang->line('MD5') . '</th>'; print '<th>' . $this->lang->line('MD5') . '</th>';
print '<th>' . $this->lang->line('Download') . '</th>'; //print '<th>' . $this->lang->line('Download') . '</th>';
print '</tr>'; print '</tr>';
$oldtag = ''; $oldtag = '';
@ -129,14 +130,14 @@ else
print anchor ("file/show/{$project->id}/{$hexname}", htmlspecialchars($file->name)); print anchor ("file/show/{$project->id}/{$hexname}", htmlspecialchars($file->name));
print '</td>'; print '</td>';
print '<td>'; print '<td>';
print anchor ("file/get/{$project->id}/{$hexname}", $download_anchor_text);
print '</td>';
print '<td>';
print htmlspecialchars($file->summary); print htmlspecialchars($file->summary);
print '</td>'; print '</td>';
print '<td><tt>'; print '<td><tt>';
print $file->md5sum; print $file->md5sum;
print '</tt></td>'; print '</tt></td>';
print '<td>';
print anchor ("file/get/{$project->id}/{$hexname}", $download_anchor_text);
print '</td>';
print '</tr>'; print '</tr>';
} }
print '</table>'; print '</table>';

View File

@ -163,7 +163,7 @@ if (empty($issues))
} }
else else
{ {
print '<table id="issue_home_mainarea_result_table">'; print '<table id="issue_home_mainarea_result_table" class="full-width-result-table">';
print '<tr class="heading">'; print '<tr class="heading">';
print '<th class="id">' . $this->lang->line('ID') . '</th>'; print '<th class="id">' . $this->lang->line('ID') . '</th>';
print '<th class="type">' . $this->lang->line('Type') . '</th>'; print '<th class="type">' . $this->lang->line('Type') . '</th>';
@ -212,11 +212,11 @@ else
print '</tr>'; print '</tr>';
} }
print '<tr class="foot">';
print "<td colspan='6' class='pages'>{$page_links}</td>";
print '</tr>';
print '</table>'; print '</table>';
print '<div id="issue_home_mainarea_result_pages">';
print $page_links;
print '</div>';
} }
?> ?>
</div> <!-- issue_home_mainarea_result --> </div> <!-- issue_home_mainarea_result -->

View File

@ -264,7 +264,7 @@ $this->load->view (
print '</a>'; print '</a>';
print '</div>'; print '</div>';
print '<table id="issue_show_mainarea_changes_table">'; print '<table id="issue_show_mainarea_changes_table" class="full-width-result-table">';
while ($count > 1) while ($count > 1)
{ {
$new = $issue->changes[--$count]; $new = $issue->changes[--$count];

View File

@ -145,7 +145,7 @@ $this->load->view (
<div id="log_mainarea_result" class="result"> <div id="log_mainarea_result" class="result">
<table id="log_mainarea_result_table"> <table id="log_mainarea_result_table" class="full-width-result-table">
<?php <?php
$curdate = ''; $curdate = '';
$xdot = $this->converter->AsciiToHex ('.'); $xdot = $this->converter->AsciiToHex ('.');
@ -176,7 +176,7 @@ $this->load->view (
if ($curdate != $date) if ($curdate != $date)
{ {
print "<tr class='break'><td colspan='{$numcols}' class='break'>&nbsp;</td></tr>"; print "<tr class='break'><td colspan='{$numcols}' class='break'>&nbsp;</td></tr>";
print "<tr class='head'><td colspan='{$numcols}' class='date'>$date</td></tr>"; print "<tr class='header'><td colspan='{$numcols}' class='header'>$date</td></tr>";
$curdate = $date; $curdate = $date;
$rowcount = 0; $rowcount = 0;
} }
@ -286,11 +286,12 @@ $this->load->view (
print '</tr>'; print '</tr>';
} }
?> ?>
<tr class='foot'>
<td colspan='<?php print $numcols?>' class='pages'><?php print $page_links ?></td>
</tr>
</table> </table>
<div id="log_mainarea_result_pages">
<?php print $page_links; ?>
</div>
</div> <!-- log_mainarea_result --> </div> <!-- log_mainarea_result -->
</div> <!-- log_mainarea --> </div> <!-- log_mainarea -->

View File

@ -8,12 +8,6 @@
#code_folder_mainarea_result_table tr { #code_folder_mainarea_result_table tr {
vertical-align: middle; vertical-align: middle;
white-space: nowrap;
}
#code_folder_mainarea_result_table tr th,
#code_folder_mainarea_result_table tr td {
padding: 0.2em 0.2em 0.2em 0.2em;
} }
#code_folder_mainarea_result_readme { #code_folder_mainarea_result_readme {
@ -110,9 +104,8 @@
overflow: auto; overflow: auto;
} }
#code_history_mainarea_result_table tr { #code_history_mainarea_result_table {
vertical-align: top; margin-top: 1em;
white-space: nowrap;
} }
#code_history_mainarea_result_table_path_list { #code_history_mainarea_result_table_path_list {

View File

@ -53,7 +53,8 @@ body {
} }
.content pre, .content pre,
.content code { .content code,
.content tt {
font-family: consolas, monaco, "Andale Mono", monospace; font-family: consolas, monaco, "Andale Mono", monospace;
overflow: auto; overflow: auto;
border: none; border: none;
@ -113,6 +114,51 @@ body {
padding: 0.2em 0.2em 0.2em 0.2em !important; /* !important so that jquery-ui.css doesn't override this */ padding: 0.2em 0.2em 0.2em 0.2em !important; /* !important so that jquery-ui.css doesn't override this */
} }
.content .fit-width-result-table,
.content .full-width-result-table {
border-collapse: collapse;
font-size: inherit;
background: inherit;
}
.content .full-width-result-table {
width: 100%;
}
.content .fit-width-result-table tr,
.content .full-width-result-table tr {
vertical-align: top;
text-align: left;
white-space: nowrap;
border-bottom: 1px solid #CCCCCC;
color: #333333;
}
.content .fit-width-result-table td,
.content .full-width-result-table td {
padding: 0.4em 0.8em 0.4em 0.8em;
white-space: nowrap;
}
.content .fit-width-result-table tr th,
.content .full-width-result-table tr th,
.content .fit-width-result-table tr td.header,
.content .full-width-result-table tr td.header {
padding: 0.5em 0.8em 0.5em 0.8em;
font-weight: bold;
text-align: left;
color: #1C94C4;
background-color: #E5ECF9;
white-space: nowrap;
}
.content .fit-width-result-table tr td img,
.content .full-width-result-table tr td img {
vertical-align: middle;
display:inline-block;
}
.content .taskbar { .content .taskbar {
font-size: 1em; font-size: 1em;
/*font-weight: bold;*/ /*font-weight: bold;*/
@ -452,72 +498,37 @@ body {
-webkit-border-radius: 3px; -webkit-border-radius: 3px;
border-radius: 3px; border-radius: 3px;
background-color: #F8F8FA;
} }
.content .mainarea tt { .content .mainarea table.wiki {
/* border-collapse: collapse;
padding: .1em .1em .1em .1em;
background-color: #F1F1FF;
*/
font-size: inherit; font-size: inherit;
background: inherit;
} }
.content .mainarea table { .content .mainarea table.wiki tr {
font-size: inherit; vertical-align: top;
background-color: inherit; text-align: left;
}
.content .mainarea table tr.heading {
color: #FFFFFF;
background-color: #7777FF;
}
.content .mainarea table tr.heading a {
color: inherit;
background-color: inherit;
text-decoration: none;
}
.content .mainarea table tr.odd {
background-color: inherit;
}
.content .mainarea table tr.even {
background-color: #EEEEFF;
}
.content .mainarea table tr th {
white-space: nowrap; white-space: nowrap;
}
.content .mainarea table tr td { border-bottom: 1px solid #CCCCCC;
padding-left: 0.2em; color: #333333;
padding-right: 0.2em;
}
.content .mainarea table tr td img {
vertical-align: middle;
display:inline-block;
}
.content .mainarea table tr td.code {
white-space: nowrap;
}
.content .mainarea table tr td.code pre {
padding: 0;
margin: 0;
border: 0 none;
background-color: inherit;
} }
.content .mainarea table.wiki th { .content .mainarea table.wiki th {
background-color: #bbccdd; padding: 0.5em 0.8em 0.5em 0.8em;
font-weight: bold;
text-align: left;
color: #1C94C4;
background-color: #E5ECF9;
white-space: nowrap;
} }
.content .mainarea table.wiki td { .content .mainarea table.wiki td {
vertical-align: top; padding: 0.5em 0.8em 0.5em 0.8em;
border-bottom: 1px dashed #bbccdd; text-align: left;
white-space: normal;
} }
.content .mainarea p.wiki { .content .mainarea p.wiki {

View File

@ -5,14 +5,12 @@
overflow: auto; overflow: auto;
} }
#file_home_mainarea_result_table tr { #file_home_mainarea_result_table {
vertical-align: middle; margin-top: 1em;
white-space: nowrap;
} }
#file_home_mainarea_result_table tr th, #file_home_mainarea_result_table tr {
#file_home_mainarea_result_table tr td { vertical-align: middle;
padding: 0.2em 0.2em 0.2em 0.2em;
} }
/*----------------------------------------------- /*-----------------------------------------------

View File

@ -7,83 +7,65 @@
} }
#issue_home_mainarea_result_table { #issue_home_mainarea_result_table {
padding-top: 1em; margin-top: 1em;
/*border-collapse: separate;
border-spacing: 0px 1px;*/
width: 100%;
font-size: inherit;
} }
#issue_home_mainarea_result_table th { #issue_home_mainarea_result_table tr {
padding-top: 3px; vertical-align: middle;
padding-bottom: 3px;
} }
#issue_home_mainarea_result_table td { #issue_home_mainarea_result_table tr.new td.status,
padding-top: 3px; #issue_home_mainarea_result_table tr.new td.summary {
padding-bottom: 3px;
}
#issue_home_mainarea_result_table tr.new {
background-color: #ffccbb; background-color: #ffccbb;
background-color: rgba(255, 204, 187, 0.5);
} }
#issue_home_mainarea_result_table tr.accepted { #issue_home_mainarea_result_table tr.accepted td.status,
#issue_home_mainarea_result_table tr.accepted td.summary {
} }
#issue_home_mainarea_result_table tr.rejected { #issue_home_mainarea_result_table tr.rejected td.status,
#issue_home_mainarea_result_table tr.rejected td.summary {
background-color: #ffeedd; background-color: #ffeedd;
background-color: rgba(255, 238, 221, 0.5);
} }
#issue_home_mainarea_result_table tr.started { #issue_home_mainarea_result_table tr.started td.status,
#issue_home_mainarea_result_table tr.started td.summary {
background-color: #ddeeff; background-color: #ddeeff;
background-color: rgba(221, 238, 255, 0.5);
} }
#issue_home_mainarea_result_table tr.stalled { #issue_home_mainarea_result_table tr.stalled td.status,
#issue_home_mainarea_result_table tr.stalled td.summary {
background-color: #bbccff; background-color: #bbccff;
background-color: rgba(187, 204, 255, 0.5);
} }
#issue_home_mainarea_result_table tr.resolved { #issue_home_mainarea_result_table tr.resolved td.status,
#issue_home_mainarea_result_table tr.resolved td.summary {
background-color: #ddffdd; background-color: #ddffdd;
background-color: rgba(221, 255, 221, 0.5);
} }
#issue_home_mainarea_result_table tr.other { #issue_home_mainarea_result_table tr.other td.status,
#issue_home_mainarea_result_table tr.other td.summary {
background-color: #ddeeff; background-color: #ddeeff;
background-color: rgba(221, 238, 255, 0.5);
} }
#issue_home_mainarea_result_table td.pages { #issue_home_mainarea_result_table td.id,
padding-top: 1em; #issue_home_mainarea_result_table td.type,
text-align: center; #issue_home_mainarea_result_table td.status,
font-weight: bold; #issue_home_mainarea_result_table td.priority,
}
#issue_home_mainarea_result_table td.id {
white-space: nowrap;
width: 1px;
}
#issue_home_mainarea_result_table td.type {
white-space: nowrap;
width: 1px;
}
#issue_home_mainarea_result_table td.status {
white-space: nowrap;
width: 1px;
}
#issue_home_mainarea_result_table td.priority {
white-space: nowrap;
width: 1px;
}
#issue_home_mainarea_result_table td.owner { #issue_home_mainarea_result_table td.owner {
white-space: nowrap;
width: 1px; width: 1px;
} }
#issue_home_mainarea_result_table td.summary { #issue_home_mainarea_result_pages {
white-space: nowrap; margin-top: 1em;
text-align: center;
width: 100%;
} }
#issue_home_mainarea_search_form { #issue_home_mainarea_search_form {
@ -131,38 +113,16 @@
float: left; float: left;
} }
#issue_show_mainarea_changes_table {
border-collapse: collapse;
width: 100%;
font-size: inherit;
}
#issue_show_mainarea_changes_table td.date { #issue_show_mainarea_changes_table td.date {
/*white-space: nowrap;*/
text-align: right;
vertical-align: top;
padding-top: 0.2em;
padding-bottom: 0.2em;
border-bottom: 1px solid lightgray;
min-width: 5em; min-width: 5em;
width: 1px; width: 1px;
} }
#issue_show_mainarea_changes_table td.updater { #issue_show_mainarea_changes_table td.updater {
width: 1px; width: 1px;
white-space: nowrap;
vertical-align: top;
padding-top: 0.2em;
padding-bottom: 0.2em;
border-bottom: 1px solid lightgray;
} }
#issue_show_mainarea_changes_table td.details { #issue_show_mainarea_changes_table td.details {
/*white-space: nowrap;*/
vertical-align: top;
padding-top: 0.2em;
padding-bottom: 0.2em;
border-bottom: 1px solid lightgray;
overflow: auto; overflow: auto;
} }

View File

@ -9,52 +9,21 @@
overflow: auto; overflow: auto;
} }
#log_mainarea_result_table {
/*border-collapse: collapse;*/
width: 100%;
}
#log_mainarea_result_table a { #log_mainarea_result_table a {
text-decoration: none; text-decoration: none;
} }
#log_mainarea_result_table td { #log_mainarea_result_table tr.break {
vertical-align: top;
white-space: nowrap;
padding-top: 3px;
padding-bottom: 3px;
}
#log_mainarea_result_table td.break {
font-size: 0.5em; font-size: 0.5em;
border: 0;
} }
#log_mainarea_result_table td.date { #log_mainarea_result_table td.time,
font-weight: bold; #log_mainarea_result_table td.projectid,
background-color: #bbccef;
}
#log_mainarea_result_table td.time {
width: 1px;
color: #777777;
}
#log_mainarea_result_table td.projectid {
width: 1px;
}
#log_mainarea_result_table td.object { #log_mainarea_result_table td.object {
width: 1px; width: 1px;
} }
#log_mainarea_result_table td.details {
white-space: normal;
}
#log_mainarea_result_table td.details .description {
/*font-style: italic;*/
}
#log_mainarea_result_table td.details pre.message { #log_mainarea_result_table td.details pre.message {
border: 0; border: 0;
margin: 1px; margin: 1px;
@ -62,9 +31,8 @@
color: #333333; color: #333333;
} }
#log_mainarea_result_table td.pages { #log_mainarea_result_pages {
padding-top: 1em; margin-top: 1em;
text-align: center; text-align: center;
font-weight: bold; width: 100%;
} }

View File

@ -4,3 +4,8 @@
#user_home_mainarea_result { #user_home_mainarea_result {
overflow: auto; overflow: auto;
} }
#user_home_mainarea_result_issues,
#user_home_mainarea_result_projects {
padding: 0;
}