diaspora/app/helpers/publisher_helper.rb
2011-09-19 11:38:55 -07:00

17 lines
423 B
Ruby

# Copyright (c) 2010-2011, Diaspora Inc. This file is
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
module PublisherHelper
def public_value
params[:controller] == "tags"
end
def remote?
params[:controller] != "tags"
end
def public_helper_text
(public_value)? t('javascripts.publisher.public'): t('javascripts.publisher.limited')
end
end