diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-10-05 20:34:21 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-10-05 20:34:21 +0000 |
commit | 57d3dd3b80ed6d5a4e0f622dfb6f560c222563ac (patch) | |
tree | 50ab4416d87b87a368f434955a9248abab863cae | |
parent | 26528d10048ab2f0ca62436486343ab01d3e35a1 (diff) | |
download | redmine-57d3dd3b80ed6d5a4e0f622dfb6f560c222563ac.tar.gz redmine-57d3dd3b80ed6d5a4e0f622dfb6f560c222563ac.zip |
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
-rw-r--r-- | app/views/issues/_list.rhtml | 2 | ||||
-rw-r--r-- | app/views/issues/_list_simple.rhtml | 4 | ||||
-rw-r--r-- | app/views/repositories/_revisions.rhtml | 6 | ||||
-rw-r--r-- | app/views/wiki/history.rhtml | 6 | ||||
-rw-r--r-- | public/stylesheets/application.css | 15 |
5 files changed, 17 insertions, 16 deletions
diff --git a/app/views/issues/_list.rhtml b/app/views/issues/_list.rhtml index 0af415946..567ccba09 100644 --- a/app/views/issues/_list.rhtml +++ b/app/views/issues/_list.rhtml @@ -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 %> diff --git a/app/views/issues/_list_simple.rhtml b/app/views/issues/_list_simple.rhtml index 0e3c39bbf..e527bdd3e 100644 --- a/app/views/issues/_list_simple.rhtml +++ b/app/views/issues/_list_simple.rhtml @@ -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> diff --git a/app/views/repositories/_revisions.rhtml b/app/views/repositories/_revisions.rhtml index b2bdb6c7f..06b1cbd49 100644 --- a/app/views/repositories/_revisions.rhtml +++ b/app/views/repositories/_revisions.rhtml @@ -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> diff --git a/app/views/wiki/history.rhtml b/app/views/wiki/history.rhtml index 41711d725..b2a467752 100644 --- a/app/views/wiki/history.rhtml +++ b/app/views/wiki/history.rhtml @@ -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> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 854f29c63..8f0064a22 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -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; |