-<% if User.current.allowed_to?(:add_messages, @board.project) %>
+<% if User.current.logged? %>
<%= form_for @message, :url => new_board_message_path(@board), :html => {:multipart => true, :id => 'message-form'} do |f| %>
<%= render :partial => 'messages/form', :locals => {:f => f} %>
diff --git a/app/views/versions/show.html.erb b/app/views/versions/show.html.erb
index f6a0ef6c4..6517faca5 100644
--- a/app/views/versions/show.html.erb
+++ b/app/views/versions/show.html.erb
@@ -1,77 +1,56 @@
-<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
-
-
- <%= render :partial => 'navigation' %>
+
+
+<%= link_to(l(:button_edit), edit_version_path(@version), :class => 'icon icon-edit') if User.current.allowed_to?(:manage_versions, @version.project) %>
+<%= link_to_if_authorized(l(:button_edit_associated_wikipage, :page_title => @version.wiki_page_title), {:controller => 'wiki', :action => 'edit', :project_id => @version.project, :id => Wiki.titleize(@version.wiki_page_title)}, :class => 'icon icon-edit') unless @version.wiki_page_title.blank? || @version.project.wiki.nil? %>
+<%= delete_link version_path(@version, :back_url => url_for(:controller => 'versions', :action => 'index', :project_id => @version.project)) if User.current.allowed_to?(:manage_versions, @version.project) %>
+<%= call_hook(:view_versions_show_contextual, { :version => @version, :project => @project }) %>
+
<%= h(@version.name) %>
-
- <%= render :partial => 'breadcrumbs',
- :locals => { :path => @path, :kind => 'dir', :revision => @rev } %>
- <% if @repositories.size > 1 %>
-
- (<%= l(:label_all_revisions) %><%= @repositories.sort.collect {|repo|
- link_to h(repo.name),
- {:controller => 'repositories', :action => 'show',
- :id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil},
- :class => 'repository' + (repo == @repository ? ' selected' : '')
- }.join(' | ').html_safe %>)
- <% end %>
-
+
+<%= render :partial => 'versions/overview', :locals => {:version => @version} %>
+<%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %>
-<% if !@entries.nil? && authorize_for('repositories', 'browse') %>
- <%= render :partial => 'dir_list' %>
+
+<% if @version.estimated_hours > 0 || User.current.allowed_to?(:view_time_entries, @project) %>
+
<% end %>
-<%= render_properties(@properties) %>
+
+<%= render_issue_status_by(@version, params[:status_by]) if @version.fixed_issues.count > 0 %>
+
+
-<% if authorize_for('repositories', 'revisions') %>
- <% if @changesets && !@changesets.empty? %>
-
<%= l(:label_latest_revision_plural) %>
- <%= render :partial => 'revisions',
- :locals => {:project => @project, :path => @path,
- :revisions => @changesets, :entry => nil }%>
- <% end %>
-
- <% has_branches = (!@repository.branches.nil? && @repository.branches.length > 0)
- sep = '' %>
- <% if @repository.supports_all_revisions? && @path.blank? %>
- <%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project,
- :repository_id => @repository.identifier_param %>
- <% sep = '|' %>
- <% end %>
- <% if @repository.supports_directory_revisions? &&
- ( has_branches || !@path.blank? || !@rev.blank? ) %>
- <%= sep %>
- <%= link_to l(:label_view_revisions),
- :action => 'changes',
- :path => to_path_param(@path),
- :id => @project,
- :repository_id => @repository.identifier_param,
- :rev => @rev %>
- <% end %>
-
- <% if @repository.supports_all_revisions? %>
- <% 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 %>
-
- <% other_formats_links do |f| %>
- <%= f.link_to 'Atom',
- :url => {:action => 'revisions', :id => @project,
- :repository_id => @repository.identifier_param,
- :key => User.current.rss_key} %>
- <% end %>
+<% if @issues.present? %>
+<%= form_tag({}) do -%>
+
<% end %>
-
-
-
-<% content_for :header_tags do %>
- <%= stylesheet_link_tag "scm" %>
+<%= context_menu issues_context_menu_path %>
<% end %>
+
-<% html_title(l(:label_repository)) -%>
+<%= call_hook :view_versions_show_bottom, :version => @version %>
+
+<% html_title @version.name %>
\ No newline at end of file