tag搜索中相关tag改成只显示10个,另外统一了按钮风格(除去留言按钮)
This commit is contained in:
parent
4f72b68442
commit
0be9de3a17
|
@ -1,6 +1,8 @@
|
|||
<% if related_tags %>
|
||||
<ul style="list-style-type: none">
|
||||
<% i = 0 %>
|
||||
<% for rt in related_tags %>
|
||||
<% i += 1 %>
|
||||
<li>
|
||||
<%= link_to image_tag("/images/sidebar/add.png"),:action => "index",
|
||||
:current_selected_tags => selected_tags,:tag => rt,:do_what => "1",
|
||||
|
@ -8,6 +10,7 @@
|
|||
<span id="tag">
|
||||
<%= rt %>
|
||||
</span>
|
||||
<% break if i >= 10 %>
|
||||
<!-- 这里用例计数某类对象的所有该tag总数 -->
|
||||
<%= render :partial => 'sidebar_tags',:locals => {:show_flag => obj_flag,:sg => rt }%>
|
||||
</li>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<%= f.text_field :name ,:id => "name-issue",:size=>"30",:require=>true,:maxlength => 25,:minlength=>1 %>
|
||||
<%= f.text_field :object_id,:value=> obj.id,:style=>"display:none"%>
|
||||
<%= f.text_field :object_flag,:value=> object_flag,:style=>"display:none"%>
|
||||
<%= f.submit l(:button_project_tags_add)%>
|
||||
<%= f.submit l(:button_project_tags_add),:class => "small"%>
|
||||
<%= link_to_function l(:button_cancel), '$("#put-tag-form-issue").hide();'%>
|
||||
<% end %>
|
||||
</div>
|
||||
|
@ -44,7 +44,7 @@
|
|||
<%= f.text_field :name ,:id => "name",:size=>"28",:require=>true,:maxlength => Setting.tags_max_length,:minlength=>Setting.tags_min_length %>
|
||||
<%= f.text_field :object_id,:value=> obj.id,:style=>"display:none"%>
|
||||
<%= f.text_field :object_flag,:value=> object_flag,:style=>"display:none"%>
|
||||
<%= f.submit "#{l(:button_project_tags_add)}"%>
|
||||
<%= f.submit l(:button_project_tags_add),:class => "small" %>
|
||||
<%= link_to_function l(:button_cancel), '$("#put-tag-form").hide();'%>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// }, function() {
|
||||
// $(this).children("span").hide();
|
||||
// });
|
||||
})
|
||||
// })
|
||||
</script>
|
||||
<!-- 1代表是user类型 2代表是project类型 3代表是issue类型 4代表需求-->
|
||||
<% @tags = obj.reload.tag_list %>
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
<% if @object_flag == '3'%>
|
||||
$('#tags_show_issue').html('<%= escape_javascript(render :partial => 'tags/tag_name',
|
||||
:locals => {:obj => @obj,:non_list_all => false,:object_flag => @object_flag}) %>');
|
||||
|
||||
<% else %>
|
||||
$('#tags_show').html('<%= escape_javascript(render :partial => 'tags/tag_name',
|
||||
:locals => {:obj => @obj,:non_list_all => false,:object_flag => @object_flag}) %>');
|
||||
|
||||
<% end %>
|
|
@ -5,7 +5,7 @@
|
|||
<div id="show_all_tags">
|
||||
<% for tag in @tags %>
|
||||
<span id="tag" class="tag<%= tag.id %>">
|
||||
<%= link_to tag.name,:remote=>true,:action=>"delete",:q => tag.id,:confirm => "Are you Sure?"%>
|
||||
<%= link_to tag.name,:remote=>true,:action=>"delete",:q => tag.id,:confirm => "Are you Sure?"%>
|
||||
</span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
|
@ -1757,4 +1757,22 @@ input[type='text'].noline {
|
|||
div.tableline{
|
||||
height: 1px;
|
||||
background-color: #ACAEB1;
|
||||
}
|
||||
|
||||
/* 统一按钮风格
|
||||
*
|
||||
* @2013-09-27
|
||||
* added by william */
|
||||
input[type="submit"] {
|
||||
width: auto;
|
||||
font-family: '微软雅黑',Arial,Helvetica,sans-serif;
|
||||
font-size: 12px;
|
||||
color: rgb(5, 5, 5);
|
||||
padding: 0px;
|
||||
background: -moz-linear-gradient(center top , rgb(255, 255, 255) 0%, rgb(235, 235, 235) 50%, rgb(219, 219, 219) 50%, rgb(181, 181, 181)) repeat scroll 0% 0% transparent;
|
||||
border-radius: 4px;
|
||||
border: 1px solid rgb(148, 148, 148);
|
||||
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2), 0px 0px 2px rgb(255, 255, 255) inset;
|
||||
text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.2), 0px 1px 0px rgb(255, 255, 255);
|
||||
cursor: pointer;
|
||||
}
|
Loading…
Reference in New Issue