summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-03-07 11:17:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-03-07 11:17:23 +0000
commit629c106a461e6781dcbca51ebdffea4094e15709 (patch)
tree9d48ff242b61fdfcc88a22fe1ef158bd3a67acaf
parentf19ae06a72f62705b82459e525eb899b395d50c6 (diff)
downloadredmine-629c106a461e6781dcbca51ebdffea4094e15709.tar.gz
redmine-629c106a461e6781dcbca51ebdffea4094e15709.zip
Merged r2515, r2516, r2527, r2534, r2555 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.8-stable@2556 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/common/_file.rhtml2
-rw-r--r--app/views/projects/activity.rhtml4
-rw-r--r--app/views/projects/list_files.rhtml20
-rw-r--r--app/views/repositories/annotate.rhtml2
-rw-r--r--doc/CHANGELOG4
-rw-r--r--public/stylesheets/application.css6
-rw-r--r--public/stylesheets/scm.css4
7 files changed, 30 insertions, 12 deletions
diff --git a/app/views/common/_file.rhtml b/app/views/common/_file.rhtml
index 43f5c6c4b..599a17377 100644
--- a/app/views/common/_file.rhtml
+++ b/app/views/common/_file.rhtml
@@ -3,7 +3,7 @@
<tbody>
<% line_num = 1 %>
<% syntax_highlight(filename, to_utf8(content)).each_line do |line| %>
-<tr><th class="line-num" id="L<%= line_num %>"><%= line_num %></th><td class="line-code"><pre><%= line %></pre></td></tr>
+<tr><th class="line-num" id="L<%= line_num %>"><a href="#L<%= line_num %>"><%= line_num %></a></th><td class="line-code"><pre><%= line %></pre></td></tr>
<% line_num += 1 %>
<% end %>
</tbody>
diff --git a/app/views/projects/activity.rhtml b/app/views/projects/activity.rhtml
index b0e536690..1a2add97f 100644
--- a/app/views/projects/activity.rhtml
+++ b/app/views/projects/activity.rhtml
@@ -46,7 +46,9 @@
<% form_tag({}, :method => :get) do %>
<h3><%= l(:label_activity) %></h3>
<p><% @activity.event_types.each do |t| %>
-<label><%= check_box_tag "show_#{t}", 1, @activity.scope.include?(t) %> <%= l("label_#{t.singularize}_plural")%></label><br />
+<%= check_box_tag "show_#{t}", 1, @activity.scope.include?(t) %>
+<%= link_to(l("label_#{t.singularize}_plural"), {"show_#{t}" => 1, :user_id => params[:user_id]})%>
+<br />
<% end %></p>
<% if @project && @project.active_children.any? %>
<p><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label></p>
diff --git a/app/views/projects/list_files.rhtml b/app/views/projects/list_files.rhtml
index 0871ba249..2b2e5e870 100644
--- a/app/views/projects/list_files.rhtml
+++ b/app/views/projects/list_files.rhtml
@@ -6,7 +6,7 @@
<% delete_allowed = User.current.allowed_to?(:manage_files, @project) %>
-<table class="list">
+<table class="list files">
<thead><tr>
<%= sort_header_tag('filename', :caption => l(:field_filename)) %>
<%= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc') %>
@@ -19,15 +19,19 @@
<% @containers.each do |container| %>
<% next if container.attachments.empty? -%>
<% if container.is_a?(Version) -%>
- <tr><th colspan="6" align="left"><span class="icon icon-package"><b><%=h container %></b></span></th></tr>
+ <tr>
+ <th colspan="6" align="left">
+ <%= link_to(h(container), {:controller => 'versions', :action => 'show', :id => container}, :class => "icon icon-package") %>
+ </th>
+ </tr>
<% end -%>
<% container.attachments.each do |file| %>
- <tr class="<%= cycle("odd", "even") %>">
- <td><%= link_to_attachment file, :download => true, :title => file.description %></td>
- <td align="center"><%= format_time(file.created_on) %></td>
- <td align="center"><%= number_to_human_size(file.filesize) %></td>
- <td align="center"><%= file.downloads %></td>
- <td align="center"><small><%= file.digest %></small></td>
+ <tr class="file <%= cycle("odd", "even") %>">
+ <td class="filename"><%= link_to_attachment file, :download => true, :title => file.description %></td>
+ <td class="created_on"><%= format_time(file.created_on) %></td>
+ <td class="filesize"><%= number_to_human_size(file.filesize) %></td>
+ <td class="downloads"><%= file.downloads %></td>
+ <td class="digest"><%= file.digest %></td>
<td align="center">
<%= link_to(image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => file},
:confirm => l(:text_are_you_sure), :method => :post) if delete_allowed %>
diff --git a/app/views/repositories/annotate.rhtml b/app/views/repositories/annotate.rhtml
index 44b5a81a6..d0fb8cbf9 100644
--- a/app/views/repositories/annotate.rhtml
+++ b/app/views/repositories/annotate.rhtml
@@ -11,7 +11,7 @@
<% syntax_highlight(@path, to_utf8(@annotate.content)).each_line do |line| %>
<% revision = @annotate.revisions[line_num-1] %>
<tr class="bloc-<%= revision.nil? ? 0 : colors[revision.identifier || revision.revision] %>">
- <th class="line-num"><%= line_num %></th>
+ <th class="line-num" id="L<%= line_num %>"><a href="#L<%= line_num %>"><%= line_num %></a></th>
<td class="revision">
<%= (revision.identifier ? link_to(format_revision(revision.identifier), :action => 'revision', :id => @project, :rev => revision.identifier) : format_revision(revision.revision)) if revision %></td>
<td class="author"><%= h(revision.author.to_s.split('<').first) if revision %></td>
diff --git a/doc/CHANGELOG b/doc/CHANGELOG
index 5eb13d4f8..e27ab0a2a 100644
--- a/doc/CHANGELOG
+++ b/doc/CHANGELOG
@@ -11,9 +11,13 @@ http://www.redmine.org/
* Strip keywords from received email body
* Footer updated to 2009
* Show RSS-link even when no issues is found
+* One click filter action in activity view
+* Clickable/linkable line #'s while browsing the repo or viewing a file
+* Links to versions on files list
* Fixed: exporting an issue with attachments to PDF raises an error
* Fixed: "too few arguments" error may occur on activerecord error translation
* Fixed: "Default columns Displayed on the Issues list" setting is not easy to read
+* Fixed: visited links to closed tickets are not striked through with IE6
== 2009-02-15 v0.8.1
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index 824b4cb7b..38ecd6bf1 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -76,7 +76,7 @@ a, a:link, a:visited{ color: #2A5685; text-decoration: none; }
a:hover, a:active{ color: #c61a1a; text-decoration: underline;}
a img{ border: 0; }
-a.issue.closed { text-decoration: line-through; }
+a.issue.closed, a.issue.closed:link, a.issue.closed:visited { text-decoration: line-through; }
/***** Tables *****/
table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; }
@@ -104,6 +104,10 @@ tr.entry.file td.filename a { margin-left: 16px; }
tr.changeset td.author { text-align: center; width: 15%; }
tr.changeset td.committed_on { text-align: center; width: 15%; }
+tr.file td { text-align: center; }
+tr.file td.filename { text-align: left; padding-left: 24px; }
+tr.file td.digest { font-size: 80%; }
+
tr.message { height: 2.6em; }
tr.message td.last_message { font-size: 80%; }
tr.message.locked td.subject a { background-image: url(../images/locked.png); }
diff --git a/public/stylesheets/scm.css b/public/stylesheets/scm.css
index ecd319307..29b239862 100644
--- a/public/stylesheets/scm.css
+++ b/public/stylesheets/scm.css
@@ -40,6 +40,10 @@ table.filecontent th.line-num {
padding-right: 3px;
color: #999;
}
+table.filecontent th.line-num a {
+ text-decoration: none;
+ color: inherit;
+}
table.filecontent td.line-code pre {
white-space: pre-wrap; /* CSS2.1 compliant */
white-space: -moz-pre-wrap; /* Mozilla-based browsers */