Skip to content

Commit

Permalink
Merge pull request #515 from rjmccluskey/fix-edit-guide-title
Browse files Browse the repository at this point in the history
fix title on edit guide page to say 'Edit' instead of 'Create'
  • Loading branch information
simonv3 committed Mar 3, 2015
2 parents a95c873 + a746150 commit 9e3989c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/guides/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div ng-controller="newGuideCtrl"
class="guides new-guide" ng-cloak>

<%= render 'guides/new/new_guide_steps' %>
<%= render 'guides/new/new_guide_steps', edit: true %>

<div class="large-8 medium-11 small-12 columns ng-cloak small-centered">

Expand Down
10 changes: 9 additions & 1 deletion app/views/guides/new/_new_guide_steps.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
<% edit = false if !edit #define edit so that an undefined variable error is not thrown%>

<div class="multi-bar-header">
<div class="bar-header">
<h1 class="title"><%= t('.create_a_growing_guide') %></h1>
<h1 class="title">
<% if edit %>
<%= t('.edit_a_growing_guide') %>
<% else %>
<%= t('.create_a_growing_guide') %>
<% end %>
</h1>
</div>
<div class="bar-header guide-creation-nav">
<div class="container">
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ en:
back: "Back"
new_guide_steps:
create_a_growing_guide: "Create a Growing Guide"
edit_a_growing_guide: "Edit a Growing Guide"
the_basics: "The Basics"
life_stages: "Life Stages"
stage_details: "Stage Details"
Expand Down

0 comments on commit 9e3989c

Please sign in to comment.