diff --git a/app/controllers/boards_controller.rb b/app/controllers/boards_controller.rb index 2262de68e..26b345948 100644 --- a/app/controllers/boards_controller.rb +++ b/app/controllers/boards_controller.rb @@ -76,7 +76,10 @@ class BoardsController < ApplicationController @board.safe_attributes = params[:board] if @board.save flash[:notice] = l(:notice_successful_create) - redirect_to_settings_in_projects + #Modified by young + #redirect_to_settings_in_projects + redirect_to project_board_path(@project, @board) + #Ended by young else render :action => 'new' end diff --git a/app/views/boards/index.html.erb b/app/views/boards/index.html.erb index 71aba48bb..c7e4f5b54 100644 --- a/app/views/boards/index.html.erb +++ b/app/views/boards/index.html.erb @@ -1,5 +1,9 @@ -

<%= l(:label_board_plural) %>

- +
+ <% if User.current.logged? %> + <%= link_to l(:label_board_new), new_project_board_path(@project), :class => 'icon icon-add' %> + <% end %> +
+

<%= l(:label_board_plural) %>

diff --git a/app/views/boards/show.html.erb b/app/views/boards/show.html.erb index bababcc3f..902dd31c1 100644 --- a/app/views/boards/show.html.erb +++ b/app/views/boards/show.html.erb @@ -4,12 +4,12 @@ <%= link_to l(:label_message_new), new_board_message_path(@board), :class => 'icon icon-add', - :onclick => 'showAndScrollTo("add-message", "message_subject"); return false;' if User.current.allowed_to?(:add_messages, @board.project) %> + :onclick => 'showAndScrollTo("add-message", "message_subject"); return false;' if User.current.logged? %> <%= watcher_link(@board, User.current) %>
<%= l(:label_board) %>
+ + + + +<% if User.current.allowed_to?(:view_time_entries, @project) %> + + + + +<% end %> +
<%= l(:field_estimated_hours) %><%= html_hours(l_hours(@version.estimated_hours)) %>
<%= l(:label_spent_time) %><%= html_hours(l_hours(@version.spent_hours)) %>
+ <% 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 -%> + + + <%- @issues.each do |issue| -%> + + + + <% end %> + <% 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