##// END OF EJS Templates
scm: git: performance improvements in fetching revisions (#8857, #9472)...
scm: git: performance improvements in fetching revisions (#8857, #9472) Parse a revision for a given branch, just if we haven't parsed it for any branches before. Moved the db check to for existing revisions into a grouped search. Search for many revisions at once: this reduces db load. Revisions are grouped into sets of 100. This is to improve memory consumption. There will be just one query instead of each 100. The above two methods significantly increase parsing speed. Test case was a git repo with 6000+ commits on a master branch, and several other branches originating for master. Speed improved from 1.4h to 18min. Contributed by Gergely Fábián. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9144 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r8829:3762a92a3537
r9024:999a4ba30d7b
Show More
show.html.erb
94 lines | 3.7 KiB | text/plain | TextLexer
Jean-Philippe Lang
Resourcified boards....
r7900 <%= breadcrumb link_to(l(:label_board_plural), project_boards_path(@project)),
link_to(h(@board.name), project_board_path(@project, @board)) %>
Jean-Philippe Lang
Add breadcrumb nav for the forums (#892)....
r1284
Jean-Philippe Lang
Forums enhancements:...
r913 <div class="contextual">
Jean-Philippe Lang
Adds watch/unwatch functionality at forum topic level (#1912)....
r1876 <%= watcher_tag(@topic, User.current) %>
Toshi MARUYAMA
code layout clean up app/views/messages/show.html.erb...
r8481 <%= link_to_remote_if_authorized(
l(:button_quote),
{ :url => {:action => 'quote', :id => @topic} },
:class => 'icon icon-comment'
) unless @topic.locked? %>
<%= link_to(
l(:button_edit),
{:action => 'edit', :id => @topic},
:class => 'icon icon-edit'
) if @message.editable_by?(User.current) %>
<%= link_to(
l(:button_delete),
{:action => 'destroy', :id => @topic},
:method => :post,
:confirm => l(:text_are_you_sure),
:class => 'icon icon-del'
) if @message.destroyable_by?(User.current) %>
Jean-Philippe Lang
Forums enhancements:...
r913 </div>
Jean-Philippe Lang
Avatars added in news (#3941) and forums (#4468) + cleanup....
r3170 <h2><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></h2>
Jean-Philippe Lang
Per project forums added....
r526
Jean-Philippe Lang
Forums: attachments can now be added to replies....
r910 <div class="message">
Jean-Philippe Lang
Forums enhancements:...
r913 <p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p>
Jean-Philippe Lang
Per project forums added....
r526 <div class="wiki">
Jean-Philippe Lang
Pass the topic objet to #textilizable (#10275)....
r8829 <%= textilizable(@topic, :content) %>
Jean-Philippe Lang
Per project forums added....
r526 </div>
Jean-Philippe Lang
AttachmentsController now handles attachments deletion....
r2114 <%= link_to_attachments @topic, :author => false %>
Jean-Philippe Lang
Forums: attachments can now be added to replies....
r910 </div>
Jean-Philippe Lang
Boards: new message form displayed with no additional request....
r752 <br />
Jean-Philippe Lang
Attachments can now be added to wiki pages (original patch by Pavol Murin). Only authorized users can add/delete attachments....
r538
Jean-Philippe Lang
Hides the "Replies" heading below a message if there is no reply (#1350)....
r1481 <% unless @replies.empty? %>
Jean-Philippe Lang
Adds pagination to forum messages (#4664)....
r3259 <h3 class="comments"><%= l(:label_reply_plural) %> (<%= @reply_count %>)</h3>
Jean-Philippe Lang
Add a user preference to choose how comments/replies are displayed: in chronological or reverse chronological order (#589, #776)....
r1183 <% @replies.each do |message| %>
Jean-Philippe Lang
Adds permalinks to message replies (#3587)....
r2710 <div class="message reply" id="<%= "message-#{message.id}" %>">
Jean-Philippe Lang
Fixed: Contextual divs after attachments are placed incorrectly in FireFox (#2633)....
r2343 <div class="contextual">
Toshi MARUYAMA
code layout clean up app/views/messages/show.html.erb...
r8481 <%= link_to_remote_if_authorized(
image_tag('comment.png'),
{ :url => {:action => 'quote', :id => message} },
:title => l(:button_quote)
) unless @topic.locked? %>
<%= link_to(
image_tag('edit.png'),
{:action => 'edit', :id => message},
:title => l(:button_edit)
) if message.editable_by?(User.current) %>
<%= link_to(
image_tag('delete.png'),
{:action => 'destroy', :id => message},
:method => :post,
:confirm => l(:text_are_you_sure),
:title => l(:button_delete)
) if message.destroyable_by?(User.current) %>
Jean-Philippe Lang
Fixed: Contextual divs after attachments are placed incorrectly in FireFox (#2633)....
r2343 </div>
Jean-Philippe Lang
Adds permalinks to message replies (#3587)....
r2710 <h4>
Toshi MARUYAMA
replace tabs to spaces at app/views/messages/show.html.erb...
r7273 <%= avatar(message.author, :size => "24") %>
Jean-Philippe Lang
Fixed: Forum message permalinks don't take pagination into account (#5945)....
r3763 <%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :r => message, :anchor => "message-#{message.id}" } %>
Jean-Philippe Lang
Adds permalinks to message replies (#3587)....
r2710 -
<%= authoring message.created_on, message.author %>
</h4>
Jean-Philippe Lang
Fixed: can not display attached images inline in message replies....
r1293 <div class="wiki"><%= textilizable message, :content, :attachments => message.attachments %></div>
Jean-Philippe Lang
AttachmentsController now handles attachments deletion....
r2114 <%= link_to_attachments message, :author => false %>
Jean-Philippe Lang
Forums enhancements:...
r913 </div>
Jean-Philippe Lang
Per project forums added....
r526 <% end %>
Jean-Philippe Lang
Adds pagination to forum messages (#4664)....
r3259 <p class="pagination"><%= pagination_links_full @reply_pages, @reply_count, :per_page_links => false %></p>
Jean-Philippe Lang
Hides the "Replies" heading below a message if there is no reply (#1350)....
r1481 <% end %>
Jean-Philippe Lang
Per project forums added....
r526
Jean-Philippe Lang
Forums enhancements:...
r913 <% if !@topic.locked? && authorize_for('messages', 'reply') %>
Jean-Philippe Lang
Forums: attachments can now be added to replies....
r910 <p><%= toggle_link l(:button_reply), "reply", :focus => 'message_content' %></p>
Jean-Philippe Lang
Per project forums added....
r526 <div id="reply" style="display:none;">
Jean-Philippe Lang
Added preview for forum messages....
r1191 <% form_for :reply, @reply, :url => {:action => 'reply', :id => @topic}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
<%= render :partial => 'form', :locals => {:f => f, :replying => true} %>
<%= submit_tag l(:button_submit) %>
Toshi MARUYAMA
remove trailing white-spaces from app/views/messages/show.html.erb...
r7202 <%= link_to_remote l(:label_preview),
Jean-Philippe Lang
Added preview for forum messages....
r1191 { :url => { :controller => 'messages', :action => 'preview', :board_id => @board },
:method => 'post',
:update => 'preview',
:with => "Form.serialize('message-form')",
:complete => "Element.scrollTo('preview')"
}, :accesskey => accesskey(:preview) %>
Jean-Philippe Lang
Per project forums added....
r526 <% end %>
Jean-Philippe Lang
Added preview for forum messages....
r1191 <div id="preview" class="wiki"></div>
Jean-Philippe Lang
Per project forums added....
r526 </div>
Jean-Philippe Lang
Attachments can now be added to wiki pages (original patch by Pavol Murin). Only authorized users can add/delete attachments....
r538 <% end %>
Jean-Philippe Lang
Enable syntax highlight on issues, messages and news (#1473, #1466)....
r1548
<% content_for :header_tags do %>
<%= stylesheet_link_tag 'scm' %>
<% end %>
Jean-Philippe Lang
Adds HTML titles to forums related views....
r1584
Etienne Massip
Remove unecessary page title HTML escaping from views (#9252)....
r7445 <% html_title @topic.subject %>