forked from starburstgem/starburst
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add partial with bootstrap panel markup
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,6 @@ | |
*= require_tree . | ||
*= require_self | ||
*/ | ||
.inline { | ||
display: inline; | ||
} |
17 changes: 17 additions & 0 deletions
17
app/views/announcements/starburst/_announcement_bootstrap_panel.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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">×</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 %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
en: | ||
announcement: Announcement | ||
close: Close |