def get_setting_url(self, group_name, setting_name): from askbot.utils.html import internal_link #not site_link return internal_link( 'group_settings', setting_name, #todo: better use description kwargs={'group': group_name}, anchor='id_%s__%s__%s' % (group_name, setting_name, get_language()))
def get_setting_url(self, group_name, setting_name): from askbot.utils.html import internal_link #not site_link return internal_link( 'group_settings', setting_name, #todo: better use description kwargs={'group': group_name}, anchor='id_%s__%s__%s' % (group_name, setting_name, get_language()) )
def get_setting_url(self, data): from askbot.utils.html import internal_link # not site_link group_name = data[0] setting_name = data[1] link = internal_link( 'group_settings', setting_name, # TODO: better use description kwargs={'group': group_name}, anchor='id_%s__%s__%s' % (group_name, setting_name, get_language())) if len(data) == 4: return force_text(string_concat(link, ' (', data[3], ')')) return link
def get_setting_url(self, data): from askbot.utils.html import internal_link #not site_link group_name = data[0] setting_name = data[1] link = internal_link( 'group_settings', setting_name, #todo: better use description kwargs={'group': group_name}, anchor='id_%s__%s__%s' % (group_name, setting_name, get_language()) ) if len(data) == 4: return force_unicode(string_concat(link, ' (', data[3], ')')) return link
def get_setting_url(self, data): from askbot.utils.html import internal_link # not site_link group_name = data[0] setting_name = data[1] link = internal_link( 'livesettings_group', setting_name, # TODO: better use description kwargs={'group': group_name}, anchor='id_%s__%s__%s' % (group_name, setting_name, get_language()) ) if len(data) == 4: return force_text(format_lazy('{} ({})',link, data[3])) return link