Sligth changes on my page issue tables and wiki history, changesets tables.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@808 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
26528d1004
commit
57d3dd3b80
|
@ -9,7 +9,7 @@
|
|||
<tbody>
|
||||
<% issues.each do |issue| %>
|
||||
<tr class="issue <%= cycle('odd', 'even') %>">
|
||||
<th class="checkbox"><%= check_box_tag "issue_ids[]", issue.id, false, :id => "issue_#{issue.id}" %></th>
|
||||
<td class="checkbox"><%= check_box_tag "issue_ids[]", issue.id, false, :id => "issue_#{issue.id}" %></td>
|
||||
<td><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td>
|
||||
<% query.columns.each do |column| %>
|
||||
<%= content_tag 'td', column_content(column, issue), :class => column.name %>
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
<tbody>
|
||||
<% for issue in issues %>
|
||||
<tr class="<%= cycle("odd", "even") %>">
|
||||
<th align="center">
|
||||
<td class="id">
|
||||
<%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %>
|
||||
</th>
|
||||
</td>
|
||||
<td><p class="small"><%= issue.project.name %> - <%= issue.tracker.name %><br />
|
||||
<%= issue.status.name %> - <%= format_time(issue.updated_on) %></p></td>
|
||||
<td>
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
<% revisions.each do |revision| %>
|
||||
<% changeset = revision.is_a?(Change) ? revision.changeset : revision %>
|
||||
<tr class="<%= cycle 'odd', 'even' %>">
|
||||
<th align="center" style="width:3em;"><%= link_to (revision.revision || changeset.revision), :action => 'revision', :id => project, :rev => changeset.revision %></th>
|
||||
<td align="center" style="width:1em;"><%= radio_button_tag('rev', changeset.revision, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < revisions.size) %></td>
|
||||
<td align="center" style="width:1em;"><%= radio_button_tag('rev_to', changeset.revision, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('cb-#{line_num}').checked==true) {$('cb-#{line_num-1}').checked=true;}") if show_diff && (line_num > 1) %></td>
|
||||
<td class="id"><%= link_to (revision.revision || changeset.revision), :action => 'revision', :id => project, :rev => changeset.revision %></th>
|
||||
<td class="checkbox"><%= radio_button_tag('rev', changeset.revision, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < revisions.size) %></td>
|
||||
<td class="checkbox"><%= radio_button_tag('rev_to', changeset.revision, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('cb-#{line_num}').checked==true) {$('cb-#{line_num-1}').checked=true;}") if show_diff && (line_num > 1) %></td>
|
||||
<td align="center" style="width:15%"><%= format_time(changeset.committed_on) %></td>
|
||||
<td align="center" style="width:15%"><em><%=h changeset.committer %></em></td>
|
||||
<td align="left"><%= textilizable(changeset.comments) %></td>
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
<% line_num = 1 %>
|
||||
<% @versions.each do |ver| %>
|
||||
<tr class="<%= cycle("odd", "even") %>">
|
||||
<th align="center"><%= link_to ver.version, :action => 'index', :page => @page.title, :version => ver.version %></th>
|
||||
<td align="center" width="1%"><%= radio_button_tag('version', ver.version, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < @versions.size) %></td>
|
||||
<td align="center" width="1%"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('cb-#{line_num}').checked==true || $('version_from').value > #{ver.version}) {$('cb-#{line_num-1}').checked=true;}") if show_diff && (line_num > 1) %></td>
|
||||
<td class="id"><%= link_to ver.version, :action => 'index', :page => @page.title, :version => ver.version %></th>
|
||||
<td class="checkbox"><%= radio_button_tag('version', ver.version, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('cbto-#{line_num+1}').checked=true;") if show_diff && (line_num < @versions.size) %></td>
|
||||
<td class="checkbox"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}", :onclick => "if ($('cb-#{line_num}').checked==true || $('version_from').value > #{ver.version}) {$('cb-#{line_num-1}').checked=true;}") if show_diff && (line_num > 1) %></td>
|
||||
<td align="center"><%= format_time(ver.updated_on) %></td>
|
||||
<td><em><%= ver.author ? ver.author.name : "anonyme" %></em></td>
|
||||
<td><%=h ver.comments %></td>
|
||||
|
|
|
@ -68,8 +68,14 @@ a img{ border: 0; }
|
|||
/***** Tables *****/
|
||||
table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; }
|
||||
table.list th { background-color:#EEEEEE; padding: 4px; white-space:nowrap; }
|
||||
table.list tbody th { padding: 0px; }
|
||||
table.list td { overflow: hidden; text-overflow: ellipsis; vertical-align: top;}
|
||||
table.list td.id { width: 2%; text-align: center;}
|
||||
table.list td.checkbox { width: 15px; padding: 0px;}
|
||||
|
||||
tr.issue { text-align: center; white-space: nowrap; }
|
||||
tr.issue td.subject, tr.issue td.category { white-space: normal; }
|
||||
tr.issue td.subject { text-align: left; }
|
||||
|
||||
table.list tbody tr:hover { background-color:#ffffdd; }
|
||||
table td {padding:2px;}
|
||||
table p {margin:0;}
|
||||
|
@ -101,6 +107,7 @@ div.square {
|
|||
form {display: inline;}
|
||||
input, select {vertical-align: middle; margin-top: 1px; margin-bottom: 1px;}
|
||||
fieldset {border: 1px solid #e4e4e4; margin:0;}
|
||||
legend {color: #484848;}
|
||||
hr { width: 100%; height: 1px; background: #ccc; border: 0;}
|
||||
textarea.wiki-edit { width: 99%; }
|
||||
li p {margin-top: 0;}
|
||||
|
@ -140,12 +147,6 @@ width: 200px;
|
|||
|
||||
div.attachments p { margin:4px 0 2px 0; }
|
||||
|
||||
/***** Issue list ****/
|
||||
tr.issue { text-align: center; white-space: nowrap; }
|
||||
tr.issue th.checkbox { width: 15px; }
|
||||
tr.issue td.subject, tr.issue td.category { white-space: normal; }
|
||||
tr.issue td.subject { text-align: left; }
|
||||
|
||||
/***** Flash & error messages ****/
|
||||
#flash div, #errorExplanation, .nodata {
|
||||
padding: 4px 4px 4px 30px;
|
||||
|
|
Loading…
Reference in New Issue