查看修订样式

dev_repository_hjq
whimlex 10 years ago
parent 92bf340786
commit 22a4bf9216

@ -33,7 +33,7 @@ end %>
<% line_num = 1 %>
<% revisions.each do |changeset| %>
<tr class="changeset <%= cycle 'odd', 'even' %>">
<% id_style = (show_revision_graph ? "padding-left:#{(graph_space + 1) * 20}px" : nil) %>
<% id_style = (show_revision_graph ? "padding-left:#{(graph_space + 1) * 12}px" : nil) %>
<%= content_tag(:td, :class => 'id', :style => id_style) do %>
<%= link_to_revision(changeset, @repository) %>
<% end %>

@ -598,3 +598,60 @@ div.thumbnails div {background:#fff;display:inline-block;margin-right:2px;}
#cboxNext{position:absolute; bottom:0px; left:63px; color:#444;}
#cboxClose{position:absolute; bottom:0; right:0; display:block; color:#444;}
/***** Tables *****/
table.list{ border:none; border-collapse: collapse; width: 100%; margin-bottom: 4px; }
table.list th { background-color:#EEEEEE; padding: 4px; white-space:pre-line; }
table.list td { vertical-align: top; padding-right:10px; }
table.list td.id { width: 2%; text-align: center;}
table.list td.checkbox { width: 15px; padding: 2px 0 0 0; }
table.list td.checkbox input {padding:0px;}
table.list td.buttons { width: 15%; white-space:nowrap; text-align: right; }
table.list td.buttons a { padding-right: 0.6em; }
table.list caption { text-align: left; padding: 0.5em 0.5em 0.5em 0; }
table.list tbody td, table.list tbody tr td, table.list tbody tr td.checkbox {
border-bottom: solid 1px #ddd;
font-size: 11px;
padding: 4px 10px 4px 3px;
}
table.list thead th
{
border:none;
border-bottom:1px solid #999;
font-size:12px;/*by young*/
font-weight:400;
padding:0 3px 3px;
text-transform:uppercase
}
table.list th
{
background-color:#fff}
table.list thead th
{
border:none;
border-bottom:1px solid #999;
font-size:12px;/*by young*/
font-weight:400;
padding:0 3px 3px;
text-transform:uppercase
}
tr.changeset { height: 20px }
tr.changeset ul, ol { margin-top: 0px; margin-bottom: 0px; }
tr.changeset td.revision_graph { width: 15%; background-color: #fffffb; }
tr.changeset td.author { text-align: center; width: 15%; white-space:nowrap;}
tr.changeset td.committed_on { text-align: center; width: 15%; white-space:nowrap;}
div.changeset { padding: 4px;}
div.changeset { border-bottom: 1px solid #ddd; }
.odd {background-color:#f6f7f8;}
.even {background-color: #fff;}
Loading…
Cancel
Save