# Copyright (c) 2010, Diaspora Inc. This file is # licensed under the Affero General Public License version 3 or later. See # the COPYRIGHT file. module AspectsHelper def remove_link(aspect) if aspect.contacts.size == 0 link_to I18n.t('aspects.helper.remove'), aspect, :method => :delete, :confirm => I18n.t('aspects.helper.are_you_sure') else "#{I18n.t('aspects.helper.remove')}" end end def new_request_link(request_count) if request_count > 0 link_to t('requests.helper.new_requests', :count => @request_count), manage_aspects_path end end end