diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml
index fd22a85900..bc6a69737b 100644
--- a/app/views/issues/show.rhtml
+++ b/app/views/issues/show.rhtml
@@ -93,7 +93,12 @@
<%= render :partial => 'relations' %>
<% end %>
-
+ <% if User.current.allowed_to?(:add_issue_watchers, @project) ||
+ (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %>
+
+ <%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %>
+
+ <% end %>
<% if @changesets.present? %>
@@ -133,13 +138,6 @@
<% content_for :sidebar do %>
<%= render :partial => 'issues/sidebar' %>
-
- <% if User.current.allowed_to?(:add_issue_watchers, @project) ||
- (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %>
-
- <%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %>
-
- <% end %>
<% end %>
<% content_for :header_tags do %>
diff --git a/app/views/watchers/_watchers.rhtml b/app/views/watchers/_watchers.rhtml
index 9106082ac2..9d4748cbbd 100644
--- a/app/views/watchers/_watchers.rhtml
+++ b/app/views/watchers/_watchers.rhtml
@@ -1,15 +1,11 @@
-
-<%= link_to_remote(l(:button_add),
+<%= l(:label_issue_watchers) %> (<%= watched.watcher_users.size %>)
+(<%= link_to_remote(l(:button_add_watcher),
:url => {:controller => 'watchers',
:action => 'new',
:object_type => watched.class.name.underscore,
:object_id => watched},
:method => :get) if User.current.allowed_to?(:add_issue_watchers, @project)
-%>
-
-
-<%= l(:label_issue_watchers) %> (<%= watched.watcher_users.size %>)
-
+%>)
<% unless @watcher.nil? %>
<% remote_form_for(:watcher, @watcher,
:url => {:controller => 'watchers',
diff --git a/config/locales/de.yml b/config/locales/de.yml
index 438e6964be..968cb53477 100644
--- a/config/locales/de.yml
+++ b/config/locales/de.yml
@@ -787,6 +787,7 @@ de:
label_incoming_emails: Eingehende E-Mails
label_generate_key: Generieren
label_issue_watchers: Beobachter
+ button_add_watcher: Beobatcher hinzufügen
label_example: Beispiel
label_display: Anzeige
label_sort: Sortierung
diff --git a/config/locales/en.yml b/config/locales/en.yml
index c8ebcfb8a1..0bdcf1ffac 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -792,6 +792,7 @@ en:
label_incoming_emails: Incoming emails
label_generate_key: Generate a key
label_issue_watchers: Watchers
+ button_add_watcher: Add watcher
label_example: Example
label_display: Display
label_sort: Sort
diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css
index 5ade9c4dda..14672d2f19 100644
--- a/public/stylesheets/application.css
+++ b/public/stylesheets/application.css
@@ -209,8 +209,8 @@ div.news h3 { background: url(../images/news.png) no-repeat 0% 50%; padding-left
div.projects h3 { background: url(../images/projects.png) no-repeat 0% 50%; padding-left: 20px; }
#watchers ul {margin: 0; padding: 0;}
-#watchers li {list-style-type:none;margin: 0px 2px 0px 0px; padding: 0px 0px 0px 0px;}
-#watchers select {width: 95%; display: block;}
+#watchers li {list-style-type:none;margin: 0px 2px 0px 0px; padding: 0px 0px 0px 0px;float:left;}
+#watchers select {width: 200px; display: block;float:left;margin-right:10px;}
#watchers a.delete {opacity: 0.4;}
#watchers a.delete:hover {opacity: 1;}
#watchers img.gravatar {vertical-align: middle;margin: 0 4px 2px 0;}
@@ -1812,6 +1812,7 @@ table.files {
}
#history {
margin:20px 0;
+ margin-bottom:0px;
}
#history h3 {
border-bottom:1px solid #ddd;
@@ -2691,6 +2692,7 @@ fieldset#attachments input, fieldset#attachments span.add_another_file {
margin-top: -8px;
}
#lower-title-bar {
+ margin-top: 30px;
margin-left: 10px;
}
#watchers .contextual {
@@ -2839,3 +2841,9 @@ ul.breadcrumb {
#breadcrumb li.cutme {
width: 50px;
}
+div#watchers{
+ margin-top:25px;
+}
+div#watchers > form > p {
+ margin-top:5px;
+}