<%= link_to tag,:controller => "tags",:action => "index",:q=>tag,:object_flag => object_flag,:obj_id => obj.id
%>
+
<%= link_to tag,:controller => "tags",:action => "index",:q=>tag ,:object_flag => object_flag,:obj_id => obj.id %>
<% end %>
diff --git a/app/views/tags/add_tag.js.erb b/app/views/tags/add_tag.js.erb
index 6c623ddd9..b8226ccb4 100644
--- a/app/views/tags/add_tag.js.erb
+++ b/app/views/tags/add_tag.js.erb
@@ -1,7 +1,7 @@
$('#selected_tags').html('<%= j(render :partial => "selected_tags",
-:locals => {:selected_tags => $selected_tags })%>');
+:locals => {:selected_tags => $selected_tags ,:show_flag => @show_flag })%>');
$('#related_tags').html('<%= j(render :partial => "related_tags",
- :locals => {:related_tags => $related_tags })%>')
+ :locals => {:related_tags => $related_tags ,:show_flag => @show_flag })%>')
$('#show_results').html('<%= j(render :partial => "tag_search_results",:locals => {:issues_results => @issues_results,
:projects_results => @projects_results,:users_results => @users_results,:show_flag => @show_flag })%>')
diff --git a/app/views/tags/delete_tag.js.erb b/app/views/tags/delete_tag.js.erb
index 808eb5388..60a7d7361 100644
--- a/app/views/tags/delete_tag.js.erb
+++ b/app/views/tags/delete_tag.js.erb
@@ -1,7 +1,7 @@
$('#selected_tags').html('<%= j(render :partial => "selected_tags",
-:locals => {:selected_tags => $selected_tags })%>');
+:locals => {:selected_tags => $selected_tags ,:show_flag => @show_flag })%>');
$('#related_tags').html('<%= j(render :partial => "related_tags",
-:locals => {:related_tags => $related_tags })%>')
+:locals => {:related_tags => $related_tags,:show_flag => @show_flag })%>')
$('#show_results').html('<%= j(render :partial => "tag_search_results",:locals => {:issues_results => @issues_results,
:projects_results => @projects_results,:users_results => @users_results,:show_flag => @show_flag })%>')
diff --git a/app/views/tags/index.html.erb b/app/views/tags/index.html.erb
index f8d6c40b1..af1fd38ca 100644
--- a/app/views/tags/index.html.erb
+++ b/app/views/tags/index.html.erb
@@ -4,13 +4,13 @@
Selected Tags
- <%= render :partial => "selected_tags",:locals => {:selected_tags => $selected_tags }%>
+ <%= render :partial => "selected_tags",:locals => {:selected_tags => $selected_tags,:show_flag => @obj_flag}%>
Related Tags
- <%= render :partial => "related_tags",:locals => {:related_tags => $related_tags }%>
+ <%= render :partial => "related_tags",:locals => {:related_tags => $related_tags,:show_flag => @obj_flag }%>
Search Results
<%= render :partial => "tag_search_results",:locals => {:issues_results => @issues_results,
diff --git a/app/views/tags/show_all.html.erb b/app/views/tags/show_all.html.erb
index df5c851b1..bcdc7fd31 100644
--- a/app/views/tags/show_all.html.erb
+++ b/app/views/tags/show_all.html.erb
@@ -1,16 +1,3 @@
-
<% for tag in @tags %>
<%= tag.name %>
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index cd0fd5aad..41ae7eb28 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -1865,3 +1865,15 @@ h2 img { vertical-align:middle; }
overflow:hidden;
}
+/*added by william*/
+#tag {
+ background: url(/images/issue_tag.png) no-repeat right -19px;
+ border-radius: 5px 5px 5px 5px;
+ color: #3a587d !important;
+ padding: 0px 4px;
+ margin: 3px;
+ display: inline-block;
+ font-size: 11px;
+ text-decoration: none;
+ cursor: pointer;
+}