in the shit
This commit is contained in:
parent
5286b6be69
commit
de8d8d5cb5
6 changed files with 179 additions and 42 deletions
|
|
@ -4,7 +4,7 @@ class DashboardController < ApplicationController
|
||||||
include ApplicationHelper
|
include ApplicationHelper
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@posts = Post.stream
|
@posts = StatusMessage.all
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ class StatusMessagesController < ApplicationController
|
||||||
def index
|
def index
|
||||||
@status_messages = StatusMessage.criteria.all.order_by( [:created_at, :desc] )
|
@status_messages = StatusMessage.criteria.all.order_by( [:created_at, :desc] )
|
||||||
@friends = Friend.all
|
@friends = Friend.all
|
||||||
|
@posts = Post.stream
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html
|
format.html
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,32 @@
|
||||||
- title "Dashboard"
|
|
||||||
|
%div.big_text#info_top
|
||||||
|
welcome home, daniel.
|
||||||
|
%p.description
|
||||||
|
this is your diaspora dashboard, a place where you can catch a
|
||||||
|
= link_to "glimpse", "#"
|
||||||
|
of what all your friends are doing.
|
||||||
|
|
||||||
|
|
||||||
%ul#stream
|
|
||||||
- for post in @posts
|
|
||||||
%li
|
|
||||||
= render "shared/post", :post =>post
|
.span-6.last
|
||||||
/= post.inspect
|
%div{ :style => "padding: 1em" }
|
||||||
|
%div.big_text
|
||||||
|
requests
|
||||||
|
|
||||||
|
%div.big_text
|
||||||
|
%div.big_number= link_to "30", "#"
|
||||||
|
new requests
|
||||||
|
|
||||||
|
|
||||||
|
.prepend-2.span-16.last
|
||||||
|
%div{ :style => "padding: 1em" }
|
||||||
|
%div.big_text
|
||||||
|
your feed
|
||||||
|
|
||||||
|
%ul#stream
|
||||||
|
- for post in @posts
|
||||||
|
%li
|
||||||
|
= render "status_messages/pane", :post => post
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,9 @@
|
||||||
%body
|
%body
|
||||||
#header
|
#header
|
||||||
.container
|
.container
|
||||||
|
#huge_star *
|
||||||
%a#diaspora_text{:href => root_path}
|
%a#diaspora_text{:href => root_path}
|
||||||
%img{:src => '/images/diaspora.png'}
|
/%img{:src => '/images/diaspora_white.png'}
|
||||||
|
|
||||||
#session_action
|
#session_action
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
|
|
@ -26,13 +27,13 @@
|
||||||
- else
|
- else
|
||||||
= link_to "login", new_user_session_path
|
= link_to "login", new_user_session_path
|
||||||
|
|
||||||
%ul.nav
|
/%ul.nav
|
||||||
%li= link_to "Home", root_path
|
/%li= link_to "home", root_path
|
||||||
%li= link_to "Users", users_path
|
/%li= link_to "users", users_path
|
||||||
%li= link_to "Status Messages", status_messages_path
|
/%li= link_to "status messages", status_messages_path
|
||||||
%li= link_to "Friends", friends_path
|
/%li= link_to "friends", friends_path
|
||||||
%li= link_to "Bookmarks", bookmarks_path
|
/%li= link_to "bookmarks", bookmarks_path
|
||||||
%li= link_to "Blogs", blogs_path
|
/%li= link_to "blogs", blogs_path
|
||||||
|
|
||||||
.container
|
.container
|
||||||
- if show_title?
|
- if show_title?
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
a {
|
a {
|
||||||
color: #1981f7;
|
color: #cc1e14;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-bottom: dotted 1px #999999; }
|
border-bottom: dotted 1px #999999; }
|
||||||
|
|
||||||
|
|
@ -50,8 +50,15 @@ h4 {
|
||||||
|
|
||||||
#header {
|
#header {
|
||||||
padding-top: 1em;
|
padding-top: 1em;
|
||||||
padding-bottom: 1em;
|
padding-bottom: 5em;
|
||||||
margin-bottom: 1em; }
|
color: white;
|
||||||
|
font-size: 120%;
|
||||||
|
background-color: #1a1a21;
|
||||||
|
border-bottom: 170px solid #e6eff7; }
|
||||||
|
#header #huge_star {
|
||||||
|
position: absolute;
|
||||||
|
font-size: 300px;
|
||||||
|
top: -103px; }
|
||||||
#header #diaspora_text {
|
#header #diaspora_text {
|
||||||
border: none; }
|
border: none; }
|
||||||
#header #session_action {
|
#header #session_action {
|
||||||
|
|
@ -59,20 +66,57 @@ h4 {
|
||||||
#header ul.nav {
|
#header ul.nav {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
display: block; }
|
display: block;
|
||||||
|
font-size: 130%;
|
||||||
|
bottom: 0; }
|
||||||
#header ul.nav li {
|
#header ul.nav li {
|
||||||
display: inline;
|
display: inline;
|
||||||
margin-right: 1em; }
|
margin-right: 1em; }
|
||||||
|
#header ul.nav a {
|
||||||
|
border-bottom: none; }
|
||||||
|
|
||||||
|
#left_pane {
|
||||||
|
background-color: #e6eff7;
|
||||||
|
border-radius: 5px; }
|
||||||
|
|
||||||
ul#stream {
|
ul#stream {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
list-style: none; }
|
text-shadow: 0 1px white;
|
||||||
ul#stream li {
|
color: #666666; }
|
||||||
list-style: none; }
|
|
||||||
ul#stream > li {
|
ul#stream > li {
|
||||||
padding: 2em 0;
|
list-style: none;
|
||||||
border-bottom: 1px solid #666666; }
|
padding: 2em;
|
||||||
ul#stream > li > ul {
|
-webkit-box-shadow: 0 4px 5px -5px black; }
|
||||||
padding: 0;
|
ul#stream li:first-child {
|
||||||
margin: 0; }
|
padding-top: 0; }
|
||||||
|
|
||||||
|
sp.message {
|
||||||
|
font-size: 150%;
|
||||||
|
letter-spacing: 0.13em; }
|
||||||
|
|
||||||
|
sp.from {
|
||||||
|
font-size: 120%;
|
||||||
|
display: block;
|
||||||
|
color: #999999;
|
||||||
|
letter-spacing: 0.1em; }
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: "helvetica", "arial", "sans-serif"; }
|
||||||
|
|
||||||
|
div.big_text {
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: bold;
|
||||||
|
line-height: 36px;
|
||||||
|
margin-bottom: 2em; }
|
||||||
|
div.big_text p.description {
|
||||||
|
font-weight: normal;
|
||||||
|
color: #999999; }
|
||||||
|
div.big_text .big_number {
|
||||||
|
font-size: 300%; }
|
||||||
|
div.big_text .big_number a {
|
||||||
|
border: none; }
|
||||||
|
|
||||||
|
#info_top {
|
||||||
|
margin-top: -140px;
|
||||||
|
margin-bottom: 70px; }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
a
|
a
|
||||||
:color #1981f7
|
:color #CC1E14
|
||||||
:text
|
:text
|
||||||
:decoration none
|
:decoration none
|
||||||
:border
|
:border
|
||||||
|
|
@ -56,9 +56,25 @@ h4
|
||||||
#header
|
#header
|
||||||
:padding
|
:padding
|
||||||
:top 1em
|
:top 1em
|
||||||
:bottom 1em
|
:bottom 5em
|
||||||
:margin
|
:color #fff
|
||||||
:bottom 1em
|
|
||||||
|
:font
|
||||||
|
:size 120%
|
||||||
|
|
||||||
|
:background
|
||||||
|
:color #1A1A21
|
||||||
|
|
||||||
|
:border
|
||||||
|
:bottom 170px solid #e6eff7
|
||||||
|
|
||||||
|
#huge_star
|
||||||
|
:position absolute
|
||||||
|
:font
|
||||||
|
:size 300px
|
||||||
|
//:background
|
||||||
|
//:color #ff3378
|
||||||
|
:top -103px
|
||||||
|
|
||||||
#diaspora_text
|
#diaspora_text
|
||||||
:border none
|
:border none
|
||||||
|
|
@ -71,26 +87,78 @@ h4
|
||||||
:padding 0
|
:padding 0
|
||||||
:margin 0
|
:margin 0
|
||||||
:display block
|
:display block
|
||||||
|
:font
|
||||||
|
:size 130%
|
||||||
|
:bottom 0
|
||||||
|
|
||||||
li
|
li
|
||||||
:display inline
|
:display inline
|
||||||
:margin
|
:margin
|
||||||
:right 1em
|
:right 1em
|
||||||
|
|
||||||
|
a
|
||||||
|
:border
|
||||||
|
:bottom none
|
||||||
|
|
||||||
|
#left_pane
|
||||||
|
:background
|
||||||
|
:color #E6EFF7
|
||||||
|
:border-radius 5px
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
ul#stream
|
ul#stream
|
||||||
:margin 0
|
:margin 0
|
||||||
:padding 0
|
:padding 0
|
||||||
:list-style none
|
:text-shadow 0 1px #fff
|
||||||
|
:color #666
|
||||||
li
|
|
||||||
:list-style none
|
|
||||||
|
|
||||||
> li
|
> li
|
||||||
:padding 2em 0
|
:list-style none
|
||||||
:border
|
:padding 2em
|
||||||
:bottom 1px solid #666
|
:-webkit-box-shadow 0 4px 5px -5px #000
|
||||||
|
li:first-child
|
||||||
|
:padding
|
||||||
|
:top 0
|
||||||
|
|
||||||
> ul
|
|
||||||
:padding 0
|
sp.message
|
||||||
:margin 0
|
:font
|
||||||
|
:size 150%
|
||||||
|
:letter-spacing 0.13em
|
||||||
|
|
||||||
|
sp.from
|
||||||
|
:font
|
||||||
|
:size 120%
|
||||||
|
:display block
|
||||||
|
:color #999
|
||||||
|
:letter-spacing 0.1em
|
||||||
|
|
||||||
|
|
||||||
|
body
|
||||||
|
|
||||||
|
:font
|
||||||
|
:family 'helvetica', 'arial', 'sans-serif'
|
||||||
|
|
||||||
|
div.big_text
|
||||||
|
:font
|
||||||
|
:size 24px
|
||||||
|
:weight bold
|
||||||
|
:line-height 36px
|
||||||
|
:margin-bottom 2em
|
||||||
|
|
||||||
|
p.description
|
||||||
|
:font
|
||||||
|
:weight normal
|
||||||
|
:color #999
|
||||||
|
|
||||||
|
.big_number
|
||||||
|
:font
|
||||||
|
:size 300%
|
||||||
|
a
|
||||||
|
:border none
|
||||||
|
|
||||||
|
#info_top
|
||||||
|
:margin
|
||||||
|
:top -140px
|
||||||
|
:bottom 70px
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue