From dd00e2abe67c1586e6f36672a8e86c36beb3d545 Mon Sep 17 00:00:00 2001 From: dpen2000 Date: Tue, 22 Apr 2014 18:36:53 -0400 Subject: [PATCH] Replace generic text Sign Up to Create a New Content --- app/locale/en.coffee | 4 +++- app/templates/kinds/search.jade | 2 +- app/views/kinds/SearchView.coffee | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/locale/en.coffee b/app/locale/en.coffee index 4696d8dae..292dfa073 100644 --- a/app/locale/en.coffee +++ b/app/locale/en.coffee @@ -370,10 +370,12 @@ new_article_title: "Create a New Article" new_thang_title: "Create a New Thang Type" new_level_title: "Create a New Level" + new_article_title_signup: "Sign Up to Create a New Article" + new_thang_title_signup: "Sign Up to Create a New Thang Type" + new_level_title_signup: "Sign Up to Create a New Level" article_search_title: "Search Articles Here" thang_search_title: "Search Thang Types Here" level_search_title: "Search Levels Here" - signup_to_create: "Sign Up to Create a New Content" read_only_warning2: "Note: you can't save any edits here, because you're not logged in." article: diff --git a/app/templates/kinds/search.jade b/app/templates/kinds/search.jade index 77dce78db..2475710db 100644 --- a/app/templates/kinds/search.jade +++ b/app/templates/kinds/search.jade @@ -9,7 +9,7 @@ block content | #{currentEditor} if me.get('anonymous') - a.btn.btn-primary.open-modal-button(data-toggle="coco-modal", data-target="modal/signup", role="button", data-i18n="editor.signup_to_create") Sign Up to Create a New Content + a.btn.btn-primary.open-modal-button(data-toggle="coco-modal", data-target="modal/signup", role="button", data-i18n="#{currentNewSignup}") Sign Up to Create a New Content else a.btn.btn-primary.open-modal-button(href='#new-model-modal', role="button", data-toggle="modal", data-i18n="#{currentNew}") Create a New Something input#search(data-i18n="[placeholder]#{currentSearch}") diff --git a/app/views/kinds/SearchView.coffee b/app/views/kinds/SearchView.coffee index 9ce303b7c..0b1a2e979 100644 --- a/app/views/kinds/SearchView.coffee +++ b/app/views/kinds/SearchView.coffee @@ -32,14 +32,17 @@ module.exports = class SearchView extends View when 'Level' context.currentEditor = 'editor.level_title' context.currentNew = 'editor.new_level_title' + context.currentNewSignup = 'editor.new_level_title_signup' context.currentSearch = 'editor.level_search_title' when 'Thang Type' context.currentEditor = 'editor.thang_title' context.currentNew = 'editor.new_thang_title' + context.currentNewSignup = 'editor.new_thang_title_signup' context.currentSearch = 'editor.thang_search_title' when 'Article' context.currentEditor = 'editor.article_title' context.currentNew = 'editor.new_article_title' + context.currentNewSignup = 'editor.new_article_title_signup' context.currentSearch = 'editor.article_search_title' @$el.i18n() context