Gives delete watcher button context

pull/906/head
Hagen Schink 11 years ago committed by Till Breuer
parent 228ecd8d73
commit aeca7dca71
  1. 30
      app/assets/stylesheets/content/_control_colors.css.sass
  2. 1
      app/assets/stylesheets/default.css.sass
  3. 3
      app/helpers/watchers_helper.rb
  4. 1
      config/locales/de.yml
  5. 1
      config/locales/en.yml

@ -0,0 +1,30 @@
/*-- copyright
* OpenProject is a project management system.
* Copyright (C) 2012-2013 the OpenProject Foundation (OPF)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 3.
*
* OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
* Copyright (C) 2006-2013 Jean-Philippe Lang
* Copyright (C) 2010-2013 the ChiliProject Team
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* See doc/COPYRIGHT.rdoc for more details. ++
*/
.delete-ctrl:before
color: red

@ -50,5 +50,6 @@
@import content/boxes
@import content/work_package_report
@import content/expandable_group_content
@import content/control_colors
@import default/main

@ -78,7 +78,8 @@ module WatchersHelper
avatar(watch.user, :size => "16") +
link_to_user(watch.user, :class => 'user') +
if remove_allowed
' '.html_safe + link_to(image_tag('webalys/red_x.png', :alt => l(:button_delete), :title => l(:button_delete)),
' '.html_safe + link_to(icon_wrapper('icon-context icon-close delete-ctrl',
l(:button_delete_watcher, name: watch.user.name)),
watcher_path(watch),
:method => :delete,
:remote => true,

@ -340,6 +340,7 @@ de:
button_create: "Anlegen"
button_create_and_continue: "Anlegen und weiter"
button_delete: "Löschen"
button_delete_watcher: "Lösche Beobachter %{name}"
button_download: "Download"
button_duplicate: "Duplizieren"
button_edit: "Bearbeiten"

@ -337,6 +337,7 @@ en:
button_create: "Create"
button_create_and_continue: "Create and continue"
button_delete: "Delete"
button_delete_watcher: "Delete watcher %{name}"
button_download: "Download"
button_duplicate: "Duplicate"
button_edit: "Edit"

Loading…
Cancel
Save