diff options
-rw-r--r-- | app/views/issues/show.rhtml | 2 | ||||
-rw-r--r-- | app/views/my/blocks/_news.rhtml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml index 759c54f5e..c8fd5c7dd 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -92,7 +92,7 @@ end %> </table> <br /> <% if authorize_for('issues', 'add_attachment') %> - <% form_tag ({ :controller => 'issues', :action => 'add_attachment', :id => @issue }, :multipart => true, :class => "tabular") do %> + <% form_tag({ :controller => 'issues', :action => 'add_attachment', :id => @issue }, :multipart => true, :class => "tabular") do %> <p id="attachments_p"><label><%=l(:label_attachment_new)%> <%= image_to_function "add.png", "addFileField();return false" %></label> <%= file_field_tag 'attachments[]', :size => 30 %> <em>(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)</em></p> diff --git a/app/views/my/blocks/_news.rhtml b/app/views/my/blocks/_news.rhtml index 4c7e2729a..d86cced92 100644 --- a/app/views/my/blocks/_news.rhtml +++ b/app/views/my/blocks/_news.rhtml @@ -1,6 +1,6 @@ <h3><%=l(:label_news_latest)%></h3> -<%= render (:partial => 'news/news', +<%= render(:partial => 'news/news', :collection => News.find(:all, :limit => 10, :order => "#{News.table_name}.created_on DESC", |