Skip to content

Instantly share code, notes, and snippets.

@mfifth
Last active May 20, 2016 20:28
Show Gist options
  • Select an option

  • Save mfifth/de8a9a9ce70698a5f3edba42a48e5a46 to your computer and use it in GitHub Desktop.

Select an option

Save mfifth/de8a9a9ce70698a5f3edba42a48e5a46 to your computer and use it in GitHub Desktop.
<div class='page-header'>
<h1>Welcome to the Forums!</h1>
</div>
<h2>Announcements</h2>
<p>
May 12th, 2016 - The infamous hacker known as Radar has once again infiltrated the website!<br>
Please notify the mods of any suspicous behavior.
</p>
<ul class='attributes'>
<li>
<% @forums.each do |forum| %>
<%= link_to forum.title, forum, class: 'btn btn-primary' %>
<% end %>
</li>
</ul>
@import "bootstrap-sprockets";
@import "bootstrap";
@import "admin/users";
@import "admin/application";
@import "forums";
@import "topics";
@import 'font-awesome';
ul.attributes {
@extend .list-unstyled;
margin-top: 20px;
}
ul.actions {
@extend .list-unstyled;
@extend .list-inline;
}
a.edit, a.delete, a.new {
@extend .btn;
&:before {
font-family: "FontAwesome";
padding-right: 0.5em;
}
}
body {
margin-top: 60px;
margin-left: 10px;
}
.alert-notice {
@extend .alert-success;
}
.alert-alert {
@extend .alert-danger;
}
a.new {
@extend .btn-success;
&:before {
@extend .fa-plus;
}
}
a.edit {
@extend .btn-warning;
&:before {
@extend .fa-pencil;
}
}
a.delete {
@extend .btn-danger;
&:before {
@extend .fa-trash;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment