From 56cbca3ce83faa112fbccf429e30015c7042948f Mon Sep 17 00:00:00 2001 From: yanxd Date: Fri, 8 Nov 2013 17:20:26 +0800 Subject: [PATCH] fix little words --- app/helpers/application_helper.rb | 2 +- app/views/files/index.html.erb | 9 ++++----- app/views/issues/index.html.erb | 5 +++-- app/views/layouts/base_homework.html.erb | 2 ++ app/views/projects/show.html.erb | 2 +- app/views/versions/index.html.erb | 2 +- 6 files changed, 12 insertions(+), 10 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 8956a95cc..6fac67e33 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -29,7 +29,7 @@ module ApplicationHelper ## added by william include PraiseTreadHelper # add by nyan - include CoursesHelper + # include CoursesHelper extend Forwardable def_delegators :wiki_helper, :wikitoolbar_for, :heads_for_wiki_formatter diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb index 6f1a4bb82..dc7724e95 100644 --- a/app/views/files/index.html.erb +++ b/app/views/files/index.html.erb @@ -1,18 +1,17 @@ +

+ +
<% if @project.project_type == 1 %> -
<% if User.current.member_of?(@project) %> <%= link_to(l(:label_file_upload), new_project_file_path(@project), :class => 'icon icon-add') if User.current.member_of?(@project) %> <% end %>
<% else %> -
<%= link_to(l(:label_attachment_new), new_project_file_path(@project), :class => 'icon icon-add') if User.current.allowed_to?(:manage_files, @project) %> -
<% end %> - -

<%=l(:label_attachment_plural)%>

+
<% delete_allowed = User.current.allowed_to?(:manage_files, @project) %> diff --git a/app/views/issues/index.html.erb b/app/views/issues/index.html.erb index 47cecb863..b90edfd60 100644 --- a/app/views/issues/index.html.erb +++ b/app/views/issues/index.html.erb @@ -1,6 +1,7 @@ -

<%= l(:field_issue) %> -
+

+ +
<%= link_to l(:label_issue_new), { :controller => 'issues', :action => 'new', :copy_from => nil }, :param => :project_id, :caption => :label_issue_new, :html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) }, :class => 'icon icon-add' %>
diff --git a/app/views/layouts/base_homework.html.erb b/app/views/layouts/base_homework.html.erb index 3422f4d9a..08495e5e3 100644 --- a/app/views/layouts/base_homework.html.erb +++ b/app/views/layouts/base_homework.html.erb @@ -4,6 +4,8 @@ + <%=h l(:label_active_homework) << " - Trustie" %> + <%= csrf_meta_tag %> <%= favicon %> <%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', :media => 'all' %> diff --git a/app/views/projects/show.html.erb b/app/views/projects/show.html.erb index b2ba11134..4464f3945 100644 --- a/app/views/projects/show.html.erb +++ b/app/views/projects/show.html.erb @@ -1,7 +1,7 @@

<% if @events_by_day.size >0 %>

-

<%= @author.nil? ? l(:label_activity) : l(:label_user_activity, link_to_user(@author)).html_safe %>

+

<%= l(:label_date_from_to, :start => format_date(@date_to - @days), :end => format_date(@date_to-1)) %>

diff --git a/app/views/versions/index.html.erb b/app/views/versions/index.html.erb index 2eef3f356..8921d63f8 100644 --- a/app/views/versions/index.html.erb +++ b/app/views/versions/index.html.erb @@ -3,7 +3,7 @@ <%= link_to l(:label_version_new), new_project_version_path(@project), :class => 'icon icon-add' if User.current.allowed_to?(:manage_versions, @project) %>
-

<%=l(:label_roadmap)%>

+