Skip to content

Commit

Permalink
changed URL tips in admin to follow the new URL pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
jipiboily committed May 26, 2012
1 parent 832ea73 commit 7e7f51b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/monologue/admin/posts/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<%= post.fields_for @revision do |revision| %>
<%= revision.text_field :title, :label => t(".title"), :class => "span6" %>
<%= revision.text_area :content, :label => t(".content"), :class => "span12 ckeditor" %>
<%= revision.text_field :url, :label => raw("#{t(".url.before_generated_url")} '#{monologue.root_path}#{DateTime.now.year}/#{t(".url.generated_title")}'#{t(".url.after_generated_url")}") %>
<%= revision.text_field :url, :label => raw("#{t(".url.before_generated_url")} '#{DateTime.now.year}/#{t(".url.generated_title")}'#{t(".url.after_generated_url")}. #{t(".url.do_not_add_mount_point")} <i>'#{monologue.root_path}'.</i>") %>
<%= revision.text_field :published_at, :label => t(".published_at"), :data => {:datepicker => "datepicker"}, :value => revision.object.published_at.nil? ? "" : revision.object.published_at.strftime("%Y-%m-%d") %>
<% end %>
<%= post.check_box :published, :label => t(".published") %>
Expand Down
2 changes: 2 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ en:
"URL <br /><i> This will be filled by default with "
after_generated_url:
". You can choose your own URL. </i>"
do_not_add_mount_point:
"Do not add at the beginning of your URL :"
generated_title:
"your-post-title"
published_at:
Expand Down
2 changes: 2 additions & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ fr:
"Adresse URL <br /><i> Ce sera rempli par défaut avec "
after_generated_url:
". Vous pouvez aussi choisir votre propre adresse URL. </i>"
do_not_add_mount_point:
"N'ajoutez pas au début de l'adresse URL:"
generated_title:
"nom-de-votre-article"
published_at:
Expand Down

0 comments on commit 7e7f51b

Please sign in to comment.