show.rhtml
35 lines
| 1.4 KiB
| text/html+ruby
|
RhtmlLexer
|
r377 | <div class="contextual"> | ||
|
r1946 | <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> | ||
|
r377 | <%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %> | ||
|
r1540 | |||
<% if !@entries.nil? && authorize_for('repositories', 'browse') -%> | ||||
<% form_tag(:action => 'browse', :id => @project) do -%> | ||||
| <%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %> | ||||
<% end -%> | ||||
<% end -%> | ||||
|
r377 | </div> | ||
|
r556 | <h2><%= l(:label_repository) %> (<%= @repository.scm_name %>)</h2> | ||
|
r103 | |||
|
r663 | <% if !@entries.nil? && authorize_for('repositories', 'browse') %> | ||
|
r147 | <%= render :partial => 'dir_list' %> | ||
|
r556 | <% end %> | ||
|
r147 | |||
|
r663 | <% if !@changesets.empty? && authorize_for('repositories', 'revisions') %> | ||
|
r374 | <h3><%= l(:label_latest_revision_plural) %></h3> | ||
|
r556 | <%= render :partial => 'revisions', :locals => {:project => @project, :path => '', :revisions => @changesets, :entry => nil }%> | ||
|
r374 | <p><%= link_to l(:label_view_revisions), :action => 'revisions', :id => @project %></p> | ||
|
r663 | <% content_for :header_tags do %> | ||
<%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :action => 'revisions', :id => @project, :page => nil, :key => User.current.rss_key})) %> | ||||
<% end %> | ||||
|
r2331 | |||
<% other_formats_links do |f| %> | ||||
<%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %> | ||||
<% end %> | ||||
|
r374 | <% end %> | ||
|
r147 | <% content_for :header_tags do %> | ||
<%= stylesheet_link_tag "scm" %> | ||||
|
r556 | <% end %> | ||
|
r951 | |||
|
r1019 | <% html_title(l(:label_repository)) -%> | ||