added notification test page

This commit is contained in:
pixeldesu 2014-12-09 23:07:04 +01:00
parent f277b249c2
commit ef9579594c
5 changed files with 84 additions and 2 deletions

View File

@ -11,6 +11,7 @@ body {
@import "scss/navbar";
@import "scss/panel";
@import "scss/user";
@import "scss/notifications";
.j2-page {
padding-top: 30px;

View File

@ -0,0 +1,20 @@
.notification--img {
min-height: 32px;
min-width: 32px;
height: 32px;
width: 32px;
}
.notification--user, .notification--text {
z-index: 99;
margin-bottom: 0px;
}
.notification--icon {
position: relative;
float: right;
font-size: 18px;
color: $gray;
opacity: 0.8;
z-index: 0;
}

View File

@ -0,0 +1,9 @@
.col-md-3.col-xs-12.col-sm-3
.panel.panel-default
.panel-body
%ul.nav.nav-pills.nav-stacked
= nav_entry "All notifications", ""
= nav_entry "Answers", ""
= nav_entry "Likes", ""
= nav_entry "Comments", ""
= nav_entry "Followers", ""

View File

@ -1,2 +0,0 @@
<h1>Notifications#index</h1>
<p>Find me in app/views/notifications/index.html.erb</p>

View File

@ -0,0 +1,54 @@
.container.j2-page
= render 'notification_tabs'
.col-md-9.col-xs-12.col-sm-9
%ul.list-group
%li.list-group-item
.media
.pull-left
%img.notification--img
.media-body
%h6.media-heading.notification--user
username
%p.notification--text
followed you!
.notification--icon
%i.fa.fa-users
%li.list-group-item
.media
.pull-left
%img.notification--img
.media-body
%h6.media-heading.notification--user
username
%p.notification--text
answered
%a your question
some time ago!
.notification--icon
%i.fa.fa-exclamation
%li.list-group-item
.media
.pull-left
%img.notification--img
.media-body
%h6.media-heading.notification--user
username
%p.notification--text
smiled at
%a your answer
some time ago!
.notification--icon
%i.fa.fa-smile-o
%li.list-group-item
.media
.pull-left
%img.notification--img
.media-body
%h6.media-heading.notification--user
username
%p.notification--text
commented
%a your answer
some time ago!
.notification--icon
%i.fa.fa-comments