defined the codepot-buttoned-anchor css style

This commit is contained in:
hyung-hwan 2016-12-29 17:30:25 +00:00
parent 27db06ba63
commit 625026c50d
4 changed files with 42 additions and 59 deletions

View File

@ -156,7 +156,7 @@ $this->load->view (
print '<td class="commit-revision-td">'; print '<td class="commit-revision-td">';
print '<div class="commit-revision-and-datetime">'; print '<div class="commit-revision-and-datetime">';
print '<div class="commit-revision">'; print '<div class="codepot-buttoned-anchor">';
print '<tt>'; print '<tt>';
print anchor ("code/file/{$project->id}/{$xfullpath}/{$h['rev']}", $h['rev']); print anchor ("code/file/{$project->id}/{$xfullpath}/{$h['rev']}", $h['rev']);
if (!empty($h['tag'])) if (!empty($h['tag']))
@ -175,7 +175,7 @@ $this->load->view (
print '</tt>'; print '</tt>';
print '</div>'; print '</div>';
print '<div class="commit-author-id">'; print '<div class="codepot-buttoned-anchor">';
print "<a href='{$user_home_url}'>"; print "<a href='{$user_home_url}'>";
print htmlspecialchars($h['author']); print htmlspecialchars($h['author']);
print '</a>'; print '</a>';
@ -188,10 +188,10 @@ $this->load->view (
if ($file['type'] == 'file') if ($file['type'] == 'file')
{ {
print anchor ("code/blame/{$project->id}/{$xfullpath}/{$h['rev']}", print anchor ("code/blame/{$project->id}/{$xfullpath}/{$h['rev']}",
'<div class="commit-action-item"><i class="fa fa-bomb"></i> ' . $this->lang->line('Blame') . '</div>'); '<div class="codepot-buttoned-anchor"><i class="fa fa-bomb"></i> ' . $this->lang->line('Blame') . '</div>');
print anchor ("code/diff/{$project->id}/{$xfullpath}/{$h['rev']}", print anchor ("code/diff/{$project->id}/{$xfullpath}/{$h['rev']}",
'<div class="commit-action-item"><i class="fa fa-server"></i> ' . $this->lang->line('Difference') . '</div>'); '<div class="codepot-buttoned-anchor"><i class="fa fa-server"></i> ' . $this->lang->line('Difference') . '</div>');
} }
print '</div>'; print '</div>';
print '</td>'; print '</td>';

View File

@ -739,6 +739,7 @@ $history = $file['history'];
*/ */
$diff_anchor_text = '<i class="fa fa-server"></i> ' . $this->lang->line('Difference'); $diff_anchor_text = '<i class="fa fa-server"></i> ' . $this->lang->line('Difference');
$fulldiff_anchor_text = '<i class="fa fa-tasks"></i> ' . $this->lang->line('Full Difference'); $fulldiff_anchor_text = '<i class="fa fa-tasks"></i> ' . $this->lang->line('Full Difference');
$blame_anchor_text = '<i class="fa fa-bomb"></i> ' . $this->lang->line('Blame');
$rowclasses = array ('odd', 'even'); $rowclasses = array ('odd', 'even');
$rowcount = 0; $rowcount = 0;
@ -749,18 +750,22 @@ $history = $file['history'];
$xpar = $this->converter->AsciiToHex ($p['path']); $xpar = $this->converter->AsciiToHex ($p['path']);
print "<td class='{$p['action']}'>"; print "<td class='{$p['action']}' >";
print anchor ("code/file/{$project->id}/{$xpar}/{$history['rev']}", htmlspecialchars($p['path'])); print anchor ("code/file/{$project->id}/{$xpar}/{$history['rev']}", htmlspecialchars($p['path']));
print '</td>'; print '</td>';
print '<td>'; print '<td>';
//print anchor ("code/blame/{$project->id}/{$xpar}/{$history['rev']}", $this->lang->line('Blame')); print '<ul id="code_revision_action_list" class="codepot-horizontal-list">';
//print ' '; print '<li class="codepot-buttoned-anchor">';
print anchor ("code/diff/{$project->id}/{$xpar}/{$history['rev']}", $diff_anchor_text); print anchor ("code/diff/{$project->id}/{$xpar}/{$history['rev']}", $diff_anchor_text);
print '</td>'; print '</li>';
print '<li class="codepot-buttoned-anchor">';
print '<td>';
print anchor ("code/fulldiff/{$project->id}/{$xpar}/{$history['rev']}", $fulldiff_anchor_text); print anchor ("code/fulldiff/{$project->id}/{$xpar}/{$history['rev']}", $fulldiff_anchor_text);
print '</li>';
print '<li class="codepot-buttoned-anchor">';
print anchor ("code/blame/{$project->id}/{$xpar}/{$history['rev']}", $blame_anchor_text);
print '</li>';
print '</ul>';
print '</td>'; print '</td>';
print '</tr>'; print '</tr>';

View File

@ -276,27 +276,6 @@
vertical-align: middle; vertical-align: middle;
} }
#code_history_result_table .commit-revision,
#code_history_result_table .commit-author-id {
background-color: #008CBA;
border: 1px solid #008CBA;
color: white;
padding: 0px 5px 0px 5px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 0.9em;
font-weight: bold;
border-radius: 2px;
transition-duration: 0.4s;
}
#code_history_result_table .commit-revision:hover,
#code_history_result_table .commit-author-id:hover {
background-color: #00BCFA;
}
#code_history_result_table .commit-actions { #code_history_result_table .commit-actions {
display: flex; display: flex;
flex-wrap: nowrap; flex-wrap: nowrap;
@ -304,33 +283,6 @@
vertical-align: middle; vertical-align: middle;
} }
#code_history_result_table .commit-revision a,
#code_history_result_table .commit-revision a:hover,
#code_history_result_table .commit-revision a:visited,
#code_history_result_table .commit-author-id a,
#code_history_result_table .commit-author-id a:hover,
#code_history_result_table .commit-author-id a:visited {
color: white
}
#code_history_result_table .commit-action-item {
background-color: #008CBA;
border: 1px solid #008CBA;
color: white;
padding: 0px 5px 0px 5px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 0.9em;
font-weight: bold;
border-radius: 2px;
transition-duration: 0.4s;
}
#code_history_result_table .commit-action-item:hover {
background-color: #00BCFA;
}
/*----------------------------------------------- /*-----------------------------------------------
* project source revision view * project source revision view
*-----------------------------------------------*/ *-----------------------------------------------*/
@ -372,6 +324,7 @@
#code_revision_result_properties_table td { #code_revision_result_properties_table td {
white-space: pre-wrap; white-space: pre-wrap;
padding-left: 22px; padding-left: 22px;
vertical-align: middle;
} }
#code_revision_result_files_table td.M, #code_revision_result_files_table td.M,

View File

@ -1072,6 +1072,32 @@ pre.codepot-line-numbered span.codepot-line-number-clear {
border-radius: 3px; border-radius: 3px;
} }
.codepot-buttoned-anchor {
background-color: #008CBA;
border: 1px solid #008CBA;
color: white;
padding: 0px 5px 0px 5px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 0.9em;
font-weight: bold;
border-radius: 2px;
transition-duration: 0.4s;
}
.codepot-buttoned-anchor:hover {
background-color: #00BCFA;
}
.codepot-buttoned-anchor a,
.codepot-buttoned-anchor a:hover,
.codepot-buttoned-anchor a:visited,
a.codepot-buttoned-anchor,
a.codepot-buttoned-anchor:hover ,
a.codepot-buttoned-anchor:visited {
color: white !important;
}
/* === list === */ /* === list === */
ul.codepot-horizontal-list { ul.codepot-horizontal-list {
@ -1087,7 +1113,6 @@ ul.codepot-horizontal-list li {
float: left; float: left;
} }
.codepot-hashed-revision-number { .codepot-hashed-revision-number {
/* #RXXXX */ /* #RXXXX */
background-color: #CACACA; background-color: #CACACA;