Skip to content

Commit

Permalink
Modified zero-state banner messages
Browse files Browse the repository at this point in the history
  • Loading branch information
brzaik committed Dec 21, 2013
1 parent 9a7191d commit 57946f1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
5 changes: 3 additions & 2 deletions app/views/concerto_hardware/screens/_screen_link.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@
</div>

<div class="default-padding">
<h1>Player Hardware</h1>
<h1><%= t('.concerto_player') %></h1>
</div>
</header>
<div class="viewblock-cont">
<div class="default-padding">
<% if @player.nil? %>
<div class="alert alert-block alert-zero">
<p class="alert-heading"><%= t('.no_player') %></p>
<p class="alert-heading"><%= t('.no_player_header') %></p>
<p><%= t('.no_player_msg') %></p>
<% if can? :update, @player %>
<%= link_to t('.add_player_msg'), hardware.new_player_path(:screen_id => @screen.id) %>
<% end %>
Expand Down
11 changes: 10 additions & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,13 @@ en:
new:
header: 'New %{screen} Player'
edit:
header: 'Edit %{screen} Player'
header: 'Edit %{screen} Player'

screens:
screen_link:
concerto_player: "Concerto Player"
no_player_header: "No Player"
no_player_msg: "A Concerto Player has not yet been connected to this screen."
add_player_msg: "Specify a Player manually."
activated: "Activated"
not_activated: "Not Activated"

0 comments on commit 57946f1

Please sign in to comment.