took out filler elements
This commit is contained in:
parent
df2b9d6ad4
commit
aee5f7f04f
10 changed files with 159 additions and 180 deletions
|
|
@ -4,7 +4,8 @@ class DashboardController < ApplicationController
|
||||||
include ApplicationHelper
|
include ApplicationHelper
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@posts = StatusMessage.all
|
@bookmarks = Bookmark.all
|
||||||
|
@messages = StatusMessage.all
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
8
app/views/bookmarks/_pane.html.haml
Normal file
8
app/views/bookmarks/_pane.html.haml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
%li.message
|
||||||
|
%span.from= link_to post.owner, "#"
|
||||||
|
%b shared a link
|
||||||
|
%br
|
||||||
|
= post.title
|
||||||
|
= link_to post.link, "#"
|
||||||
|
%div.time= "#{time_ago_in_words(post.updated_at)} ago"
|
||||||
|
|
||||||
|
|
@ -1,17 +1,8 @@
|
||||||
- title "Bookmarks"
|
- title "Bookmarks"
|
||||||
|
|
||||||
%table
|
%div.big_text
|
||||||
%tr
|
%p.description= link_to "New Bookmark", new_bookmark_path
|
||||||
%th Title
|
|
||||||
%th Link
|
|
||||||
%th Owner
|
|
||||||
- for bookmark in @bookmarks
|
|
||||||
%tr
|
|
||||||
%td= bookmark.title
|
|
||||||
%td= link_to bookmark.link, bookmark.link
|
|
||||||
%td= bookmark.owner
|
|
||||||
%td= link_to 'Show', bookmark
|
|
||||||
%td= link_to 'Edit', edit_bookmark_path(bookmark)
|
|
||||||
%td= link_to 'Destroy', bookmark, :confirm => 'Are you sure?', :method => :delete
|
|
||||||
|
|
||||||
%p= link_to "New Bookmark", new_bookmark_path
|
%ul#stream
|
||||||
|
- for bookmark in @bookmarks
|
||||||
|
= render "pane", :post => bookmark
|
||||||
|
|
|
||||||
|
|
@ -1,41 +1,21 @@
|
||||||
|
%div.big_text
|
||||||
|
recent activity
|
||||||
|
%div.filters
|
||||||
|
= link_to "displaying all", "#"
|
||||||
|
%ul#stream
|
||||||
|
- for post in @messages
|
||||||
|
= render "status_messages/pane", :post => post
|
||||||
|
|
||||||
/%div.big_text#info_top
|
/.span-7.last
|
||||||
/welcome home, daniel.
|
/%div.info_pane
|
||||||
/%p.description
|
/%div.big_text
|
||||||
/this is your diaspora dashboard, a place where you can catch a
|
/%div.big_number= link_to "30", "#"
|
||||||
/= link_to "glimpse", "#"
|
/new requests!
|
||||||
/of what all your friends are doing.
|
/%div.info_pane
|
||||||
|
/%div.big_text
|
||||||
.span-15.append-2.last
|
/your profile
|
||||||
|
/%img{:src => "/images/mocks/bp.jpeg", :width => '20%', :class => "profile_image"}
|
||||||
%div.small_text
|
/%div.info_pane
|
||||||
what's crackalackin', daniel?
|
/%div.big_text
|
||||||
%div#publish
|
/your circle
|
||||||
- form_for 'StatusMessage' do |f|
|
/%p= link_to "see all friends", "#"
|
||||||
= f.text_field :thought
|
|
||||||
|
|
||||||
%div.big_text
|
|
||||||
recent activity
|
|
||||||
%div.filters
|
|
||||||
= link_to "displaying all", "#"
|
|
||||||
|
|
||||||
|
|
||||||
%ul#stream
|
|
||||||
- for post in @posts
|
|
||||||
= render "status_messages/pane", :post => post
|
|
||||||
|
|
||||||
.span-7.last
|
|
||||||
|
|
||||||
%div.info_pane
|
|
||||||
%img{:src => "/images/mocks/bp.jpeg", :width => '100%', :class => "profile_image"}
|
|
||||||
%div.big_text
|
|
||||||
daniel grippi
|
|
||||||
|
|
||||||
%div.info_pane
|
|
||||||
%div.big_text
|
|
||||||
requests
|
|
||||||
|
|
||||||
%div.big_text
|
|
||||||
%div.big_number= link_to "30", "#"
|
|
||||||
new requests
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
%div.centered
|
%div.centered
|
||||||
%div.big_text
|
|
||||||
sign in
|
|
||||||
|
|
||||||
= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
|
= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
|
||||||
= f.text_field :email
|
= f.text_field :email
|
||||||
|
|
@ -10,6 +8,5 @@
|
||||||
- if devise_mapping.rememberable?
|
- if devise_mapping.rememberable?
|
||||||
= f.check_box :remember_me
|
= f.check_box :remember_me
|
||||||
= f.label :remember_me
|
= f.label :remember_me
|
||||||
%br
|
|
||||||
= f.submit "Sign in"
|
= f.submit "Sign in"
|
||||||
= render :partial => "devise/shared/links"
|
= render :partial => "devise/shared/links"
|
||||||
|
|
|
||||||
|
|
@ -15,28 +15,28 @@
|
||||||
= yield(:head)
|
= yield(:head)
|
||||||
|
|
||||||
%body
|
%body
|
||||||
#header
|
%header
|
||||||
.container
|
%a#diaspora_text{:href => root_path}
|
||||||
#huge_star *
|
%img{:src => '/images/diaspora_white.png'}
|
||||||
%a#diaspora_text{:href => root_path}
|
|
||||||
%img{:src => '/images/diaspora_white.png'}
|
|
||||||
|
|
||||||
#session_action
|
#session_action
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
= link_to User.first.email, destroy_user_session_path
|
= link_to User.first.email, destroy_user_session_path
|
||||||
- else
|
- else
|
||||||
= link_to "login", new_user_session_path
|
= link_to "login", new_user_session_path
|
||||||
|
|
||||||
#header_below
|
#header_below
|
||||||
.container
|
%nav
|
||||||
%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 "status messages", status_messages_path
|
%li= link_to "status messages", status_messages_path
|
||||||
|
%li= link_to "bookmarks", bookmarks_path
|
||||||
|
%li= link_to "blogs", blogs_path
|
||||||
%li= link_to "friends", friends_path
|
%li= link_to "friends", friends_path
|
||||||
|
|
||||||
.container
|
- if show_title?
|
||||||
- if show_title?
|
%div.big_text= yield(:title)
|
||||||
%h2= yield(:title)
|
- flash.each do |name, msg|
|
||||||
- flash.each do |name, msg|
|
= content_tag :div, msg, :id => "flash_#{name}"
|
||||||
= content_tag :div, msg, :id => "flash_#{name}"
|
= yield
|
||||||
= yield
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
%li
|
%li.message
|
||||||
%img{:src => "/images/mocks/user_pic.jpeg", :class => "avatar"}
|
%span.from
|
||||||
%sp.message
|
= link_to post.owner, "#"
|
||||||
%sp.from= link_to post.owner, "#"
|
= post.message
|
||||||
/%sp.from Daniel Grippi
|
%div.time
|
||||||
= post.message
|
= "#{time_ago_in_words(post.updated_at)} ago"
|
||||||
%br
|
|
||||||
%sp.time= "#{time_ago_in_words(post.updated_at)} ago"
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,34 +1,10 @@
|
||||||
- title "Home"
|
- title "status messages"
|
||||||
|
|
||||||
%h3 Your latest message
|
%div.big_text
|
||||||
%h2= my_latest_message
|
%p.description= my_latest_message
|
||||||
|
%p.description= link_to "New Status Message", new_status_message_path
|
||||||
|
|
||||||
%br
|
%ul#stream
|
||||||
%br
|
|
||||||
%br
|
|
||||||
|
|
||||||
%h3 Messages
|
|
||||||
%ul
|
|
||||||
- for status_message in @status_messages
|
- for status_message in @status_messages
|
||||||
%li
|
= render "pane", :post => status_message
|
||||||
= "#{status_message.message} by #{status_message.owner} #{time_ago_in_words(status_message.created_at)} ago"
|
|
||||||
= link_to 'Show', status_message
|
|
||||||
|
|
|
||||||
=link_to 'Destroy', status_message, :confirm => 'Are you sure?', :method => :delete
|
|
||||||
|
|
||||||
|
|
||||||
%h2 Friends
|
|
||||||
%table
|
|
||||||
%tr
|
|
||||||
%th username
|
|
||||||
%th url
|
|
||||||
- for friend in @friends
|
|
||||||
%tr
|
|
||||||
%td= friend.username
|
|
||||||
%td= friend.url
|
|
||||||
%td= link_to 'Show', friend
|
|
||||||
%td= link_to 'Destroy', friend, :confirm => 'Are you sure?', :method => :delete
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%p= link_to "New Status Message", new_status_message_path
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
body {
|
body {
|
||||||
font-family: "helvetica", "arial", "sans-serif"; }
|
font-family: "helvetica", "arial", "sans-serif";
|
||||||
|
padding: 2em;
|
||||||
|
margin: 0; }
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #cc1e14;
|
color: #cc1e14;
|
||||||
|
|
@ -50,31 +52,29 @@ h4 {
|
||||||
.error_messages ul {
|
.error_messages ul {
|
||||||
margin: 0; }
|
margin: 0; }
|
||||||
|
|
||||||
#header {
|
header {
|
||||||
|
margin-top: -2em;
|
||||||
|
margin-right: -2em;
|
||||||
|
margin-left: -2em;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
color: white;
|
color: white;
|
||||||
font-size: 110%;
|
|
||||||
background-color: #1a1a21;
|
background-color: #1a1a21;
|
||||||
border-bottom: 2px solid white;
|
border-bottom: 2px solid white;
|
||||||
padding-top: 5px; }
|
padding-top: 5px; }
|
||||||
#header #huge_star {
|
header #diaspora_text {
|
||||||
display: none;
|
|
||||||
position: absolute;
|
|
||||||
font-family: "helvetica neue", "helvetica", "arial", "sans-serif";
|
|
||||||
font-size: 60px;
|
|
||||||
top: -15px; }
|
|
||||||
#header #diaspora_text {
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
border: none;
|
border: none;
|
||||||
top: 8px; }
|
top: 8px;
|
||||||
#header #session_action {
|
left: 1em; }
|
||||||
float: right;
|
header #session_action {
|
||||||
font-size: 110%;
|
position: absolute;
|
||||||
margin-top: 1px; }
|
right: 1em;
|
||||||
#header #session_action a {
|
font-size: 120%;
|
||||||
|
margin-top: 2px; }
|
||||||
|
header #session_action a {
|
||||||
color: #cccccc;
|
color: #cccccc;
|
||||||
border: none; }
|
border: none; }
|
||||||
#header #session_action a:hover {
|
header #session_action a:hover {
|
||||||
color: white; }
|
color: white; }
|
||||||
|
|
||||||
ul.nav {
|
ul.nav {
|
||||||
|
|
@ -103,11 +103,13 @@ ul.nav {
|
||||||
color: #cccccc; }
|
color: #cccccc; }
|
||||||
|
|
||||||
#header_below {
|
#header_below {
|
||||||
|
padding: 1em;
|
||||||
position: relative;
|
position: relative;
|
||||||
background-color: #e6eff7;
|
background-color: #e6eff7;
|
||||||
text-align: right;
|
margin-left: -2em;
|
||||||
height: 70px;
|
margin-right: -2em;
|
||||||
margin-bottom: 40px; }
|
margin-bottom: 40px;
|
||||||
|
height: 20px; }
|
||||||
|
|
||||||
#left_pane {
|
#left_pane {
|
||||||
background-color: #e6eff7;
|
background-color: #e6eff7;
|
||||||
|
|
@ -121,26 +123,32 @@ ul#stream {
|
||||||
ul#stream > li {
|
ul#stream > li {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
border-bottom: 1px solid #f1f1f1; }
|
border-bottom: 1px solid #f1f1f1;
|
||||||
|
border-radius: 2px; }
|
||||||
ul#stream > li img.avatar {
|
ul#stream > li img.avatar {
|
||||||
width: 45px;
|
width: 45px;
|
||||||
background: white; }
|
background: white; }
|
||||||
|
ul#stream > li:hover {
|
||||||
|
background-color: #f1f1f1;
|
||||||
|
border-bottom: 1px solid #cccccc; }
|
||||||
|
ul#stream > li:hover .message {
|
||||||
|
color: black; }
|
||||||
|
ul#stream > li:hover .time {
|
||||||
|
color: #666666; }
|
||||||
|
|
||||||
sp.message {
|
li.message {
|
||||||
position: absolute;
|
|
||||||
float: left;
|
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
margin-top: -2px;
|
margin-top: -2px;
|
||||||
line-height: 17px;
|
line-height: 17px;
|
||||||
font-size: 120%;
|
font-size: 120%;
|
||||||
font-family: "Lucida Grande";
|
font-family: "Lucida Grande";
|
||||||
color: #666666;
|
color: #999999;
|
||||||
text-shadow: none;
|
text-shadow: none; }
|
||||||
width: 480px; }
|
li.message span.from {
|
||||||
sp.message sp.from {
|
|
||||||
color: black;
|
color: black;
|
||||||
font-weight: bold; }
|
font-weight: bold;
|
||||||
sp.message sp.time {
|
margin-right: 0.2em; }
|
||||||
|
li.message div.time {
|
||||||
color: #bababa;
|
color: #bababa;
|
||||||
font-size: 70%; }
|
font-size: 70%; }
|
||||||
|
|
||||||
|
|
@ -167,7 +175,7 @@ div.small_text {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold; }
|
font-weight: bold; }
|
||||||
|
|
||||||
#publish input {
|
#publish input#thought {
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
padding: 7px;
|
padding: 7px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
|
@ -181,10 +189,13 @@ div.small_text {
|
||||||
border: 2px solid #eaeaea; }
|
border: 2px solid #eaeaea; }
|
||||||
|
|
||||||
form {
|
form {
|
||||||
font-size: 130%; }
|
font-size: 430%;
|
||||||
|
margin: 1em;
|
||||||
|
margin-left: 0em; }
|
||||||
form input {
|
form input {
|
||||||
font-size: 150%;
|
font-size: 150%;
|
||||||
padding: 0.2em; }
|
padding: 0.2em;
|
||||||
|
max-width: 100%; }
|
||||||
|
|
||||||
.centered {
|
.centered {
|
||||||
text-align: center; }
|
text-align: center; }
|
||||||
|
|
@ -193,4 +204,5 @@ form {
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
background-color: #1a1a21;
|
background-color: #1a1a21;
|
||||||
color: #f5fafd;
|
color: #f5fafd;
|
||||||
margin-bottom: 1em; }
|
margin-bottom: 1em;
|
||||||
|
border-radius: 2px; }
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
body
|
body
|
||||||
:font
|
:font
|
||||||
:family 'helvetica', 'arial', 'sans-serif'
|
:family 'helvetica', 'arial', 'sans-serif'
|
||||||
|
:padding 2em
|
||||||
|
:margin 0
|
||||||
|
|
||||||
|
|
||||||
a
|
a
|
||||||
:color #CC1E14
|
:color #CC1E14
|
||||||
|
|
@ -55,11 +58,14 @@ h4
|
||||||
ul
|
ul
|
||||||
:margin 0
|
:margin 0
|
||||||
|
|
||||||
#header
|
header
|
||||||
|
:margin
|
||||||
|
:top -2em
|
||||||
|
:right -2em
|
||||||
|
:left -2em
|
||||||
|
|
||||||
:height 30px
|
:height 30px
|
||||||
:color #fff
|
:color #fff
|
||||||
:font
|
|
||||||
:size 110%
|
|
||||||
:background
|
:background
|
||||||
:color #1A1A21
|
:color #1A1A21
|
||||||
:border
|
:border
|
||||||
|
|
@ -67,27 +73,19 @@ h4
|
||||||
:padding
|
:padding
|
||||||
:top 5px
|
:top 5px
|
||||||
|
|
||||||
|
|
||||||
#huge_star
|
|
||||||
:display none
|
|
||||||
:position absolute
|
|
||||||
:font
|
|
||||||
:family 'helvetica neue', 'helvetica', 'arial', 'sans-serif'
|
|
||||||
:size 60px
|
|
||||||
//:background
|
|
||||||
//:color #ff3378
|
|
||||||
:top -15px
|
|
||||||
|
|
||||||
#diaspora_text
|
#diaspora_text
|
||||||
:position absolute
|
:position absolute
|
||||||
:border none
|
:border none
|
||||||
:top 8px
|
:top 8px
|
||||||
|
:left 1em
|
||||||
|
|
||||||
#session_action
|
#session_action
|
||||||
:float right
|
:position absolute
|
||||||
:font-size 110%
|
:right 1em
|
||||||
:margin-top 1px
|
:font
|
||||||
|
:size 120%
|
||||||
|
:margin
|
||||||
|
:top 2px
|
||||||
a
|
a
|
||||||
:color #ccc
|
:color #ccc
|
||||||
:border none
|
:border none
|
||||||
|
|
@ -129,13 +127,15 @@ ul.nav
|
||||||
|
|
||||||
|
|
||||||
#header_below
|
#header_below
|
||||||
|
:padding 1em
|
||||||
:position relative
|
:position relative
|
||||||
:background
|
:background
|
||||||
:color #e6eff7
|
:color #e6eff7
|
||||||
:text-align right
|
|
||||||
:height 70px
|
|
||||||
:margin
|
:margin
|
||||||
|
:left -2em
|
||||||
|
:right -2em
|
||||||
:bottom 40px
|
:bottom 40px
|
||||||
|
:height 20px
|
||||||
|
|
||||||
|
|
||||||
#left_pane
|
#left_pane
|
||||||
|
|
@ -152,18 +152,30 @@ ul#stream
|
||||||
> li
|
> li
|
||||||
:list-style none
|
:list-style none
|
||||||
:padding 1em
|
:padding 1em
|
||||||
//:-webkit-box-shadow 0 4px 5px -5px #999
|
|
||||||
:border
|
:border
|
||||||
:bottom 1px solid #f1f1f1
|
:bottom 1px solid #f1f1f1
|
||||||
|
|
||||||
|
|
||||||
img.avatar
|
img.avatar
|
||||||
:width 45px
|
:width 45px
|
||||||
background: #fff
|
background: #fff
|
||||||
|
:border-radius 2px
|
||||||
|
|
||||||
|
> li:hover
|
||||||
|
:background
|
||||||
|
:color #f1f1f1
|
||||||
|
:border
|
||||||
|
:bottom 1px solid #ccc
|
||||||
|
> li:hover .message
|
||||||
|
:color #000
|
||||||
|
> li:hover .time
|
||||||
|
:color #666
|
||||||
|
|
||||||
|
|
||||||
sp.message
|
|
||||||
:position absolute
|
|
||||||
:float left
|
|
||||||
|
li.message
|
||||||
:margin
|
:margin
|
||||||
:left 10px
|
:left 10px
|
||||||
:top -2px
|
:top -2px
|
||||||
|
|
@ -171,16 +183,17 @@ sp.message
|
||||||
:font
|
:font
|
||||||
:size 120%
|
:size 120%
|
||||||
:family 'Lucida Grande'
|
:family 'Lucida Grande'
|
||||||
:color #666
|
:color #999
|
||||||
:text-shadow none
|
:text-shadow none
|
||||||
:width 480px
|
|
||||||
|
|
||||||
sp.from
|
span.from
|
||||||
:color #000
|
:color #000
|
||||||
:font
|
:font
|
||||||
:weight bold
|
:weight bold
|
||||||
|
:margin
|
||||||
|
:right 0.2em
|
||||||
|
|
||||||
sp.time
|
div.time
|
||||||
:color #bababa
|
:color #bababa
|
||||||
:font-size 70%
|
:font-size 70%
|
||||||
|
|
||||||
|
|
@ -216,10 +229,8 @@ div.small_text
|
||||||
:size 18px
|
:size 18px
|
||||||
:weight bold
|
:weight bold
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#publish
|
#publish
|
||||||
input
|
input#thought
|
||||||
:font
|
:font
|
||||||
:size 30px
|
:size 30px
|
||||||
:padding 7px
|
:padding 7px
|
||||||
|
|
@ -239,12 +250,16 @@ div.small_text
|
||||||
|
|
||||||
form
|
form
|
||||||
:font
|
:font
|
||||||
:size 130%
|
:size 430%
|
||||||
|
:margin 1em
|
||||||
|
:margin-left 0em
|
||||||
|
|
||||||
input
|
input
|
||||||
:font
|
:font
|
||||||
:size 150%
|
:size 150%
|
||||||
:padding 0.2em
|
:padding 0.2em
|
||||||
|
:max-width 100%
|
||||||
|
|
||||||
|
|
||||||
.centered
|
.centered
|
||||||
:text-align center
|
:text-align center
|
||||||
|
|
@ -256,3 +271,4 @@ form
|
||||||
:color #f5fafd
|
:color #f5fafd
|
||||||
:margin
|
:margin
|
||||||
:bottom 1em
|
:bottom 1em
|
||||||
|
:border-radius 2px
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue