Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add partial with bootstrap panel markup #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
<button name="commit" type="submit" class="close pull-right" id="starburst-close">
<span aria-hidden="true">&times;</span>
<span class="sr-only"><%= t(:close) %></span>
</button>
<h3 class="panel-title"><%= t(:announcement) %></h3>
</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