Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

'Add New' becomes 'Add'

  • Loading branch information...
commit d4d8cfb04fc439fa8f5849438bff46bf48f503a4 1 parent 6934eef
@fesplugas fesplugas authored
View
2  CHANGELOG.md
@@ -32,6 +32,8 @@ CHANGELOG
* [CHANGED] `display_flash_message` becomes `admin_display_flash_message`.
+ * [CHANGED] "Add New" becomes "Add".
+
Changes: <https://github.com/fesplugas/typus/compare/v3.1.9...master>
View
2  app/helpers/admin/resources/data_types/belongs_to_helper.rb
@@ -85,7 +85,7 @@ def build_add_new_for_belongs_to(klass, options)
:action => 'new',
:attribute => options[:attribute],
:_popup => true }
- link_to Typus::I18n.t("Add New"), default_options, { :class => 'iframe' }
+ link_to Typus::I18n.t("Add"), default_options, { :class => 'iframe' }
end
end
View
2  app/helpers/admin/resources/data_types/has_and_belongs_to_many_helper.rb
@@ -46,7 +46,7 @@ def build_add_new_for_has_and_belongs_to_many(klass, options)
:attribute => options[:attribute],
:_popup => true }
- link_to Typus::I18n.t("Add New"), options, { :class => "iframe" }
+ link_to Typus::I18n.t("Add"), options, { :class => "iframe" }
end
end
View
2  app/helpers/admin/resources/data_types/has_many_helper.rb
@@ -37,7 +37,7 @@ def build_add_new_for_has_many(klass, field, options = {})
:action => "new",
:_popup => true }
- link_to Typus::I18n.t("Add New"), default_options.merge(options), { :class => "iframe_with_page_reload" }
+ link_to Typus::I18n.t("Add"), default_options.merge(options), { :class => "iframe_with_page_reload" }
end
end
View
2  app/helpers/admin/resources/data_types/has_one_helper.rb
@@ -24,7 +24,7 @@ def build_add_new_for_has_one(klass, field, options = {})
:action => "new",
:_popup => true }
- link_to Typus::I18n.t("Add New"), default_options.merge(options), { :class => "iframe_with_page_reload" }
+ link_to Typus::I18n.t("Add"), default_options.merge(options), { :class => "iframe_with_page_reload" }
end
end
View
2  app/helpers/admin/resources_helper.rb
@@ -27,7 +27,7 @@ def build_sidebar
def sidebar_add_new(klass)
if admin_user.can?("create", klass)
- { :message => Typus::I18n.t("Add New"), :url => { :action => "new" } }
+ { :message => Typus::I18n.t("Add"), :url => { :action => "new" } }
end
end
View
2  app/views/admin/dashboard/widgets/_models.html.erb
@@ -15,7 +15,7 @@
<tr class="<%= cycle("even", "odd") %>">
<td><%= link_to klass.model_name.human.pluralize, :controller => "/admin/#{klass.to_resource}" %></td>
<td width="80px" align="right">
- <%= link_to Typus::I18n.t("Add New"), :controller => "/admin/#{klass.to_resource}", :action => 'new' %>
+ <%= link_to Typus::I18n.t("Add"), :controller => "/admin/#{klass.to_resource}", :action => 'new' %>
</td>
</tr>
<% end %>
View
2  app/views/admin/dashboard/widgets/_models_extended.html.erb
@@ -17,7 +17,7 @@
<td><%= link_to klass.model_name.human.pluralize, :controller => "/admin/#{klass.to_resource}" %></td>
<td width="30px" align="right"><%= klass.count %></td>
<td width="80px" align="right">
- <%= link_to Typus::I18n.t("Add New"), :controller => "/admin/#{klass.to_resource}", :action => 'new' %>
+ <%= link_to Typus::I18n.t("Add"), :controller => "/admin/#{klass.to_resource}", :action => 'new' %>
</td>
</tr>
<% end %>
View
2  app/views/admin/resources/new.html.erb
@@ -1,5 +1,5 @@
<%
- page_title = Typus::I18n.t("Add New %{resource}", :resource => @resource.model_name.human)
+ page_title = Typus::I18n.t("Add %{resource}", :resource => @resource.model_name.human)
admin_title(page_title)
%>
View
2  doc/user_guide/source/usage.rst
@@ -15,7 +15,7 @@ Create Entries
To create a new entry:
* Click on entries tab.
-* Click "Add New" sub tab.
+* Click "Add" sub tab.
* Start filling in the blanks.
* When you are ready, click "Save Entry".
View
2  lib/typus/controller/headless.rb
@@ -10,7 +10,7 @@ def self.included(base)
end
def set_resources_action_for_headless_on_index
- add_resources_action("Add New", {:action => "new"})
+ add_resources_action("Add", {:action => "new"})
end
private :set_resources_action_for_headless_on_index
Please sign in to comment.
Something went wrong with that request. Please try again.