Skip to content

Commit

Permalink
Add partial with bootstrap panel markup
Browse files Browse the repository at this point in the history
  • Loading branch information
jscharf committed Sep 13, 2015
1 parent 56f2d37 commit ecdc9e5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/assets/stylesheets/starburst/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@
*= require_tree .
*= require_self
*/
.inline {
display: inline;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<% if current_announcement %>
<%= form_tag starburst.mark_as_read_path(current_announcement.id), :remote => true do %>
<div class="panel panel-info" id="starburst-announcement" role="alert">
<div class="panel-heading text-center">
<span class="glyphicon glyphicon-bullhorn pull-left"></span>
<h3 class="panel-title inline"><%= t(:announcement) %></h3>
<button name="commit" type="submit" class="close" id="starburst-close">
<span aria-hidden="true">&times;</span>
<span class="sr-only"><%= t(:close) %></span>
</button>
</div>
<div class="panel-body">
<p><%= current_announcement.body.html_safe %></p>
</div>
</div>
<% end %>
<% end %>
3 changes: 3 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
en:
announcement: Announcement
close: Close

0 comments on commit ecdc9e5

Please sign in to comment.