diff --git a/app/views/layouts/_tag.html.erb b/app/views/layouts/_tag.html.erb deleted file mode 100644 index e0e2b49fd..000000000 --- a/app/views/layouts/_tag.html.erb +++ /dev/null @@ -1,41 +0,0 @@ -
- <%= tag('img', {:src => "/images/sidebar/tags.png"}, false, false) %> - - - - <% if object_flag == '3' %> - <%= toggle_link (image_tag "/images/sidebar/add.png"), 'put-tag-form-issue', {:focus => 'name-issue'} %> -
- <%= render :partial => "layouts/tag_name",:locals => {:obj => obj,:non_list_all => false ,:object_flag => object_flag} %> -
- -
- -<% else %> -<%= toggle_link (image_tag "/images/sidebar/add.png"), 'put-tag-form', {:focus => 'name'} %> -
- <%= render :partial => "layouts/tag_name",:locals => {:obj => obj,:non_list_all => false ,:object_flag => object_flag} %> -
- - -<% end %> diff --git a/app/views/layouts/_tag_name.html.erb b/app/views/layouts/_tag_name.html.erb deleted file mode 100644 index 6a54878ed..000000000 --- a/app/views/layouts/_tag_name.html.erb +++ /dev/null @@ -1,55 +0,0 @@ - - -<% @tags = obj.reload.tag_list %> - -<% if non_list_all and (@tags.size > 0) %> - - <% if @tags.size > Setting.show_tags_length.to_i then %> - <% i = 0 %> - <% until i>Setting.show_tags_length.to_i do %> -
- <%= link_to @tags[i], :controller => "tags",:action => "index",:q => @tags[i],:object_flag => object_flag,:obj_id => obj.id %> -
- <% i += 1%> - <% end %> - <%= link_to l(:label_more_tags),:action => "show",:id => obj.id %> - - <% else %> - - <% @tags.each do |tag| %> -
- <%= link_to tag,:controller => "tags",:action => "index",:q=>tag,:object_flag => object_flag,:obj_id => obj.id - %> -
- <% end %> - <% end %> - -<% else %> - - <% if @tags.size > 0 %> - <% @tags.each do |tag| %> -
- <%= link_to tag,:controller => "tags",:action => "index",:q=>tag ,:object_flag => object_flag,:obj_id => obj.id %> -
- <% end %> - <% end %> - -<% end %> \ No newline at end of file diff --git a/app/views/tags/_tag.html.erb b/app/views/tags/_tag.html.erb index 521f07d83..9ce6ea86b 100644 --- a/app/views/tags/_tag.html.erb +++ b/app/views/tags/_tag.html.erb @@ -1,14 +1,22 @@
+ <% if User.current.logged? %> - <%= image_tag("/images/sidebar/tags.png") %> - <% end %> - +
+ <%= image_tag("/images/sidebar/tags.png") %> + <%= l(:label_tag) %>: + + + + - <% if object_flag == '3' %> + <% if object_flag == '3' %> + <% if User.current.logged? %> - <%= toggle_link (image_tag "/images/sidebar/add.png"), 'put-tag-form-issue', {:focus => 'name-issue'} %> + <%= toggle_link (image_tag "/images/sidebar/add.png"), 'put-tag-form-issue', {:focus => 'name-issue'} %> <% end %> + +
<%= render :partial => "tags/tag_name",:locals => {:obj => obj,:non_list_all => false ,:object_flag => object_flag} %>
@@ -26,9 +34,13 @@
<% else %> + <% if User.current.logged? %> -<%= toggle_link (image_tag "/images/sidebar/add.png"), 'put-tag-form', {:focus => 'name'} %> + <%= toggle_link (image_tag "/images/sidebar/add.png"), 'put-tag-form', {:focus => 'name'} %> <% end %> + + +
<%= render :partial => "tags/tag_name",:locals => {:obj => obj,:non_list_all => false ,:object_flag => object_flag} %>
@@ -45,3 +57,4 @@ <% end %> +<% end %> \ No newline at end of file diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index f17af3147..4646f021a 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -117,6 +117,15 @@ ul.tool li{list-style-type:none; font-weight: bold; } +.font_title_tag{ + font-family:微软雅黑; + font-weight:bold; + padding-top:3px; + padding-bottom:3px; + font-size:16px; + /*color:#05a8bb;*/ +} + .font_title_left{ font-family:微软雅黑; font-weight:bold;