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');
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 '<th>' . $this->lang->line('Name') . '</th>';
print '<th>' . $this->lang->line('Revision') . '</th>';

View File

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

View File

@ -406,7 +406,7 @@ $history = $file['history'];
<div id="code_revision_mainarea_result_files" class="collapsible-box">
<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">
<table id="code_revision_mainarea_result_files_table">
<table id="code_revision_mainarea_result_files_table" class="fit-width-result-table">
<?php
/*
print '<tr class="heading">';
@ -448,7 +448,7 @@ $history = $file['history'];
<div id="code_revision_mainarea_result_properties" class="collapsible-box">
<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">
<table id="code_revision_mainarea_result_properties_table">
<table id="code_revision_mainarea_result_properties_table" class="fit-width-result-table">
<?php
$rowclasses = array ('odd', 'even');
$rowcount = 0;

View File

@ -99,15 +99,16 @@ else
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 '<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('MD5') . '</th>';
print '<th>' . $this->lang->line('Download') . '</th>';
//print '<th>' . $this->lang->line('Download') . '</th>';
print '</tr>';
$oldtag = '';
@ -129,14 +130,14 @@ else
print anchor ("file/show/{$project->id}/{$hexname}", htmlspecialchars($file->name));
print '</td>';
print '<td>';
print anchor ("file/get/{$project->id}/{$hexname}", $download_anchor_text);
print '</td>';
print '<td>';
print htmlspecialchars($file->summary);
print '</td>';
print '<td><tt>';
print $file->md5sum;
print '</tt></td>';
print '<td>';
print anchor ("file/get/{$project->id}/{$hexname}", $download_anchor_text);
print '</td>';
print '</tr>';
}
print '</table>';

View File

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

View File

@ -264,7 +264,7 @@ $this->load->view (
print '</a>';
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)
{
$new = $issue->changes[--$count];

View File

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

View File

@ -8,12 +8,6 @@
#code_folder_mainarea_result_table tr {
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 {
@ -110,9 +104,8 @@
overflow: auto;
}
#code_history_mainarea_result_table tr {
vertical-align: top;
white-space: nowrap;
#code_history_mainarea_result_table {
margin-top: 1em;
}
#code_history_mainarea_result_table_path_list {

View File

@ -53,7 +53,8 @@ body {
}
.content pre,
.content code {
.content code,
.content tt {
font-family: consolas, monaco, "Andale Mono", monospace;
overflow: auto;
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 */
}
.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 {
font-size: 1em;
/*font-weight: bold;*/
@ -452,72 +498,37 @@ body {
-webkit-border-radius: 3px;
border-radius: 3px;
background-color: #F8F8FA;
}
.content .mainarea tt {
/*
padding: .1em .1em .1em .1em;
background-color: #F1F1FF;
*/
.content .mainarea table.wiki {
border-collapse: collapse;
font-size: inherit;
background: inherit;
}
.content .mainarea table {
font-size: inherit;
background-color: inherit;
}
.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 {
.content .mainarea table.wiki tr {
vertical-align: top;
text-align: left;
white-space: nowrap;
}
.content .mainarea table tr td {
padding-left: 0.2em;
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;
border-bottom: 1px solid #CCCCCC;
color: #333333;
}
.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 {
vertical-align: top;
border-bottom: 1px dashed #bbccdd;
padding: 0.5em 0.8em 0.5em 0.8em;
text-align: left;
white-space: normal;
}
.content .mainarea p.wiki {

View File

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

View File

@ -7,83 +7,65 @@
}
#issue_home_mainarea_result_table {
padding-top: 1em;
/*border-collapse: separate;
border-spacing: 0px 1px;*/
width: 100%;
font-size: inherit;
margin-top: 1em;
}
#issue_home_mainarea_result_table th {
padding-top: 3px;
padding-bottom: 3px;
#issue_home_mainarea_result_table tr {
vertical-align: middle;
}
#issue_home_mainarea_result_table td {
padding-top: 3px;
padding-bottom: 3px;
}
#issue_home_mainarea_result_table tr.new {
#issue_home_mainarea_result_table tr.new td.status,
#issue_home_mainarea_result_table tr.new td.summary {
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: 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: 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: 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: 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: rgba(221, 238, 255, 0.5);
}
#issue_home_mainarea_result_table td.pages {
padding-top: 1em;
text-align: center;
font-weight: bold;
}
#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.id,
#issue_home_mainarea_result_table td.type,
#issue_home_mainarea_result_table td.status,
#issue_home_mainarea_result_table td.priority,
#issue_home_mainarea_result_table td.owner {
white-space: nowrap;
width: 1px;
}
#issue_home_mainarea_result_table td.summary {
white-space: nowrap;
#issue_home_mainarea_result_pages {
margin-top: 1em;
text-align: center;
width: 100%;
}
#issue_home_mainarea_search_form {
@ -131,38 +113,16 @@
float: left;
}
#issue_show_mainarea_changes_table {
border-collapse: collapse;
width: 100%;
font-size: inherit;
}
#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;
width: 1px;
}
#issue_show_mainarea_changes_table td.updater {
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 {
/*white-space: nowrap;*/
vertical-align: top;
padding-top: 0.2em;
padding-bottom: 0.2em;
border-bottom: 1px solid lightgray;
overflow: auto;
}

View File

@ -9,52 +9,21 @@
overflow: auto;
}
#log_mainarea_result_table {
/*border-collapse: collapse;*/
width: 100%;
}
#log_mainarea_result_table a {
text-decoration: none;
}
#log_mainarea_result_table td {
vertical-align: top;
white-space: nowrap;
padding-top: 3px;
padding-bottom: 3px;
}
#log_mainarea_result_table td.break {
#log_mainarea_result_table tr.break {
font-size: 0.5em;
border: 0;
}
#log_mainarea_result_table td.date {
font-weight: bold;
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.time,
#log_mainarea_result_table td.projectid,
#log_mainarea_result_table td.object {
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 {
border: 0;
margin: 1px;
@ -62,9 +31,8 @@
color: #333333;
}
#log_mainarea_result_table td.pages {
padding-top: 1em;
#log_mainarea_result_pages {
margin-top: 1em;
text-align: center;
font-weight: bold;
width: 100%;
}

View File

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