DG IZ; getting there.
This commit is contained in:
parent
260805af64
commit
5193a20458
9 changed files with 104 additions and 76 deletions
|
|
@ -2,11 +2,12 @@
|
||||||
%span.from
|
%span.from
|
||||||
= link_to_person post.person
|
= link_to_person post.person
|
||||||
%b wrote a new blog post
|
%b wrote a new blog post
|
||||||
- if mine?(post)
|
|
||||||
.destroy_link
|
|
||||||
= link_to 'Destroy', status_message_path(post), :confirm => 'Are you sure?', :method => :delete
|
|
||||||
%br
|
%br
|
||||||
%b= post.title
|
%b= post.title
|
||||||
%br
|
%br
|
||||||
= raw post.body
|
= raw post.body
|
||||||
%div.time= link_to "#{time_ago_in_words(post.updated_at)} ago", blog_path(post)
|
%div.time= link_to "#{time_ago_in_words(post.updated_at)} ago", blog_path(post)
|
||||||
|
|
||||||
|
- if mine?(post)
|
||||||
|
.destroy_link
|
||||||
|
= link_to 'Delete', status_message_path(post), :confirm => 'Are you sure?', :method => :delete
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,6 @@
|
||||||
%span.from
|
%span.from
|
||||||
= link_to_person post.person
|
= link_to_person post.person
|
||||||
%b shared a link
|
%b shared a link
|
||||||
- if mine?(post)
|
|
||||||
.destroy_link
|
|
||||||
= link_to 'Destroy', status_message_path(post), :confirm => 'Are you sure?', :method => :delete
|
|
||||||
%br
|
%br
|
||||||
= post.title
|
= post.title
|
||||||
|
|
||||||
|
|
@ -12,3 +9,6 @@
|
||||||
= post.link
|
= post.link
|
||||||
%div.time= link_to "#{time_ago_in_words(post.updated_at)} ago", bookmark_path(post)
|
%div.time= link_to "#{time_ago_in_words(post.updated_at)} ago", bookmark_path(post)
|
||||||
|
|
||||||
|
- if mine?(post)
|
||||||
|
.destroy_link
|
||||||
|
= link_to 'Delete', status_message_path(post), :confirm => 'Are you sure?', :method => :delete
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
= render "shared/publisher"
|
= render "shared/publisher"
|
||||||
%h1 your network stream
|
|
||||||
%ul#stream
|
%ul#stream
|
||||||
- for post in @posts
|
- for post in @posts
|
||||||
= render type_partial(post), :post => post
|
= render type_partial(post), :post => post
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
%h1 your friends
|
%h3 your friends
|
||||||
%ul#stream
|
%ul#stream
|
||||||
- for friend in @friends
|
- for friend in @friends
|
||||||
= link_to friend.real_name, friend_path(friend)
|
= link_to friend.real_name, friend_path(friend)
|
||||||
%br
|
%br
|
||||||
%br
|
%br
|
||||||
%hr
|
%hr
|
||||||
= link_to "add a new friend", new_friend_path
|
= link_to "add a new friend", new_friend_path
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,15 @@
|
||||||
ws.send(location.pathname);
|
ws.send(location.pathname);
|
||||||
debug("connected...");
|
debug("connected...");
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
$("#stream li").hover(function() {
|
||||||
|
$(this).children(".destroy_link").fadeIn(0);
|
||||||
|
}, function() {
|
||||||
|
$(this).children(".destroy_link").fadeOut(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
});
|
||||||
%body
|
%body
|
||||||
- flash.each do |name, msg|
|
- flash.each do |name, msg|
|
||||||
= content_tag :div, msg, :id => "flash_#{name}"
|
= content_tag :div, msg, :id => "flash_#{name}"
|
||||||
|
|
@ -58,17 +66,15 @@
|
||||||
- else
|
- else
|
||||||
= link_to "login", new_user_session_path
|
= link_to "login", new_user_session_path
|
||||||
|
|
||||||
#header_below
|
|
||||||
.container
|
|
||||||
- if user_signed_in?
|
|
||||||
%h1#user_name
|
|
||||||
= link_to User.first.real_name, root_url
|
|
||||||
%span.description
|
|
||||||
= my_latest_message
|
|
||||||
|
|
||||||
.container
|
.container
|
||||||
|
- if user_signed_in?
|
||||||
|
%h1#user_name
|
||||||
|
= link_to User.first.real_name, root_url
|
||||||
|
%span.description
|
||||||
|
= my_latest_message
|
||||||
#content.span-24.last
|
#content.span-24.last
|
||||||
.span-4.append-1.last
|
.span-5.append-1.last
|
||||||
%img{:src => "/images/user_picture.jpg", :id => "user_picture"}
|
%img{:src => "/images/user_picture.jpg", :id => "user_picture"}
|
||||||
%ul#stream_filters
|
%ul#stream_filters
|
||||||
%a{ :href => root_path, :title => "Your network stream."}
|
%a{ :href => root_path, :title => "Your network stream."}
|
||||||
|
|
@ -81,8 +87,7 @@
|
||||||
%li blogs
|
%li blogs
|
||||||
%a{ :href => friends_path, :title => "Your list of connections with other seeds."}
|
%a{ :href => friends_path, :title => "Your list of connections with other seeds."}
|
||||||
%li friends
|
%li friends
|
||||||
.span-14.append-1.last
|
= render 'friends/sidebar' if user_signed_in?
|
||||||
|
.span-18
|
||||||
= yield
|
= yield
|
||||||
= render "posts/debug"
|
= render "posts/debug"
|
||||||
.span-3.last
|
|
||||||
= render 'friends/sidebar' if user_signed_in?
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,14 @@
|
||||||
:css
|
:css
|
||||||
#publisher{
|
#publisher{
|
||||||
height: 300px;
|
padding: 10px;
|
||||||
background-color: #eaeaea;
|
padding-top: 20px;
|
||||||
border: 1px solid #666;
|
padding-bottom: 5px;
|
||||||
padding: 1em;
|
background-color: rgba( 242, 248, 252, 0.7 );
|
||||||
|
border-bottom: 2px #999 solid;
|
||||||
|
}
|
||||||
|
|
||||||
|
#publisher_form {
|
||||||
|
margin-bottom: -15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#new_bookmark {
|
#new_bookmark {
|
||||||
|
|
@ -20,7 +25,15 @@
|
||||||
|
|
||||||
ul#publisher_content_pickers li {
|
ul#publisher_content_pickers li {
|
||||||
display: inline;
|
display: inline;
|
||||||
margin-right: 2em;
|
padding: 0.6em;
|
||||||
|
|
||||||
|
border-radius: 5px;
|
||||||
|
-moz-border-radius: 5px;
|
||||||
|
-webkit-border-radius: 5px;
|
||||||
|
|
||||||
|
border: 1px solid #666;
|
||||||
|
|
||||||
|
background-color: rgba( 255,255,255, 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
:javascript
|
:javascript
|
||||||
|
|
@ -63,7 +76,7 @@
|
||||||
= f.error_messages
|
= f.error_messages
|
||||||
%p
|
%p
|
||||||
= f.text_field :message, :value => "Message"
|
= f.text_field :message, :value => "Message"
|
||||||
= f.submit :class => 'button'
|
= f.submit "Post"
|
||||||
|
|
||||||
|
|
||||||
= form_for Bookmark.new, :remote => true do |f|
|
= form_for Bookmark.new, :remote => true do |f|
|
||||||
|
|
@ -71,11 +84,11 @@
|
||||||
%p
|
%p
|
||||||
= f.text_field :title, :value => "Title"
|
= f.text_field :title, :value => "Title"
|
||||||
= f.text_field :link, :value => "URL"
|
= f.text_field :link, :value => "URL"
|
||||||
= f.submit
|
= f.submit "Post"
|
||||||
|
|
||||||
= form_for Blog.new, :remote => true do |f|
|
= form_for Blog.new, :remote => true do |f|
|
||||||
= f.error_messages
|
= f.error_messages
|
||||||
%p
|
%p
|
||||||
= f.text_field :title, :value => "Title"
|
= f.text_field :title, :value => "Title"
|
||||||
= f.text_area :body
|
= f.text_area :body
|
||||||
= f.submit
|
= f.submit "Post"
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,10 @@
|
||||||
= link_to_person post.person
|
= link_to_person post.person
|
||||||
= post.message
|
= post.message
|
||||||
|
|
||||||
- if mine?(post)
|
|
||||||
.destroy_link
|
|
||||||
= link_to 'Destroy', status_message_path(post), :confirm => 'Are you sure?', :method => :delete
|
|
||||||
|
|
||||||
%div.time
|
%div.time
|
||||||
= link_to(how_long_ago(post), status_message_path(post))
|
= link_to(how_long_ago(post), status_message_path(post))
|
||||||
= render "comments/comments", :post => post
|
= render "comments/comments", :post => post
|
||||||
|
|
||||||
|
- if mine?(post)
|
||||||
|
.destroy_link
|
||||||
|
= link_to 'Delete', status_message_path(post), :confirm => 'Are you sure?', :method => :delete
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,9 @@ body {
|
||||||
margin: 0; }
|
margin: 0; }
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #cc1e14;
|
color: #316191;
|
||||||
text-decoration: none; }
|
text-decoration: none;
|
||||||
a:hover {
|
font-weight: bold; }
|
||||||
color: #cc1e14; }
|
|
||||||
|
|
||||||
#flash_notice,
|
#flash_notice,
|
||||||
#flash_error,
|
#flash_error,
|
||||||
|
|
@ -54,11 +53,11 @@ a {
|
||||||
header {
|
header {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: -2em;
|
margin: -2em;
|
||||||
margin-bottom: 0;
|
margin-bottom: 2em;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
color: white;
|
color: white;
|
||||||
background-color: #1a1a21;
|
background-color: #1a1a21;
|
||||||
border-bottom: 2px solid white;
|
border-bottom: 2px solid #7e96a6;
|
||||||
padding-top: 5px; }
|
padding-top: 5px; }
|
||||||
header #diaspora_text {
|
header #diaspora_text {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
@ -108,44 +107,39 @@ ul#stream_filters {
|
||||||
padding-top: 0.8em;
|
padding-top: 0.8em;
|
||||||
padding-bottom: 0.4em; }
|
padding-bottom: 0.4em; }
|
||||||
|
|
||||||
#content {
|
|
||||||
position: absolute;
|
|
||||||
top: 94px; }
|
|
||||||
|
|
||||||
#main {
|
#main {
|
||||||
width: 100%; }
|
width: 100%; }
|
||||||
|
|
||||||
ul#stream {
|
ul#stream {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
color: #666666; }
|
color: #666666;
|
||||||
|
font-size: 110%; }
|
||||||
ul#stream > li {
|
ul#stream > li {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 1em;
|
padding: 1em 0;
|
||||||
border-bottom: 1px solid #f1f1f1;
|
border-bottom: 1px solid #f1f1f1;
|
||||||
margin-bottom: 5px; }
|
margin-bottom: 5px; }
|
||||||
|
|
||||||
li.message {
|
li.message {
|
||||||
|
position: relative;
|
||||||
line-height: 140%;
|
line-height: 140%;
|
||||||
font-family: "Lucida Grande", "sans-serif";
|
font-family: "Lucida Grande", "sans-serif";
|
||||||
color: #999999; }
|
color: #999999; }
|
||||||
li.message span.from {
|
li.message span.from {
|
||||||
color: black;
|
color: #333333;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-right: 0.2em; }
|
margin-right: 0.2em; }
|
||||||
li.message div.time {
|
li.message div.time {
|
||||||
color: #bababa;
|
color: #bababa;
|
||||||
font-size: 70%; }
|
font-size: 70%; }
|
||||||
|
|
||||||
#user_name {
|
|
||||||
font-size: 15px;
|
|
||||||
line-height: 100%; }
|
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
position: relative;
|
position: relative;
|
||||||
font-size: 18px;
|
font-size: 21px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
line-height: 36px; }
|
line-height: 36px;
|
||||||
|
text-shadow: 0 1px 1px #cccccc; }
|
||||||
h1 p.description, h1 span.description {
|
h1 p.description, h1 span.description {
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
font-family: "helvetica neue", "lucida grande", "sans-serif";
|
font-family: "helvetica neue", "lucida grande", "sans-serif";
|
||||||
|
|
@ -155,7 +149,8 @@ h1 {
|
||||||
h3 {
|
h3 {
|
||||||
position: relative;
|
position: relative;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold; }
|
font-weight: bold;
|
||||||
|
text-shadow: 0 1px 1px #cccccc; }
|
||||||
|
|
||||||
#publish input#thought {
|
#publish input#thought {
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
|
|
@ -173,7 +168,7 @@ form {
|
||||||
max-width: 100%; }
|
max-width: 100%; }
|
||||||
|
|
||||||
#user_name {
|
#user_name {
|
||||||
text-shadow: 0 1px 0 white; }
|
margin-bottom: 1em; }
|
||||||
#user_name a {
|
#user_name a {
|
||||||
color: black; }
|
color: black; }
|
||||||
#user_name a:hover {
|
#user_name a:hover {
|
||||||
|
|
@ -201,6 +196,9 @@ ul.comment_set {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-weight: bold; }
|
font-weight: bold; }
|
||||||
|
|
||||||
|
.new_comment {
|
||||||
|
display: none; }
|
||||||
|
|
||||||
img#profile_picture {
|
img#profile_picture {
|
||||||
width: 100%; }
|
width: 100%; }
|
||||||
|
|
||||||
|
|
@ -211,7 +209,13 @@ img#user_picture {
|
||||||
padding: 3px; }
|
padding: 3px; }
|
||||||
|
|
||||||
.destroy_link {
|
.destroy_link {
|
||||||
float: right; }
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
bottom: 15px;
|
||||||
|
display: none; }
|
||||||
|
.destroy_link a {
|
||||||
|
color: #999999;
|
||||||
|
font-weight: normal; }
|
||||||
|
|
||||||
#debug_info {
|
#debug_info {
|
||||||
margin-top: 20px; }
|
margin-top: 20px; }
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,10 @@ body
|
||||||
:padding 2em
|
:padding 2em
|
||||||
:margin 0
|
:margin 0
|
||||||
a
|
a
|
||||||
:color #CC1E14
|
:color #316191
|
||||||
:text
|
:text
|
||||||
:decoration none
|
:decoration none
|
||||||
&:hover
|
:font-weight bold
|
||||||
:color #CC1E14
|
|
||||||
|
|
||||||
#flash_notice,
|
#flash_notice,
|
||||||
#flash_error,
|
#flash_error,
|
||||||
|
|
@ -56,13 +55,13 @@ a
|
||||||
header
|
header
|
||||||
:position relative
|
:position relative
|
||||||
:margin -2em
|
:margin -2em
|
||||||
:bottom 0
|
:bottom 2em
|
||||||
:height 30px
|
:height 30px
|
||||||
:color #fff
|
:color #fff
|
||||||
:background
|
:background
|
||||||
:color #1A1A21
|
:color #1A1A21
|
||||||
:border
|
:border
|
||||||
:bottom 2px solid #fff
|
:bottom 2px solid #7E96A6
|
||||||
:padding
|
:padding
|
||||||
:top 5px
|
:top 5px
|
||||||
|
|
||||||
|
|
@ -118,9 +117,6 @@ ul#stream_filters
|
||||||
:top 0.8em
|
:top 0.8em
|
||||||
:bottom 0.4em
|
:bottom 0.4em
|
||||||
|
|
||||||
#content
|
|
||||||
:position absolute
|
|
||||||
:top 94px
|
|
||||||
|
|
||||||
#main
|
#main
|
||||||
:width 100%
|
:width 100%
|
||||||
|
|
@ -129,23 +125,25 @@ ul#stream
|
||||||
:margin 0
|
:margin 0
|
||||||
:padding 0
|
:padding 0
|
||||||
:color #666
|
:color #666
|
||||||
|
:font
|
||||||
|
:size 110%
|
||||||
|
|
||||||
> li
|
> li
|
||||||
:list-style none
|
:list-style none
|
||||||
:padding 1em
|
:padding 1em 0
|
||||||
:border
|
:border
|
||||||
:bottom 1px solid #f1f1f1
|
:bottom 1px solid #f1f1f1
|
||||||
:margin-bottom 5px
|
:margin-bottom 5px
|
||||||
|
|
||||||
li.message
|
li.message
|
||||||
|
:position relative
|
||||||
:line-height 140%
|
:line-height 140%
|
||||||
:font
|
:font
|
||||||
:family 'Lucida Grande', 'sans-serif'
|
:family 'Lucida Grande', 'sans-serif'
|
||||||
:color #999
|
:color #999
|
||||||
|
|
||||||
|
|
||||||
span.from
|
span.from
|
||||||
:color #000
|
:color #333
|
||||||
:font
|
:font
|
||||||
:weight bold
|
:weight bold
|
||||||
:margin
|
:margin
|
||||||
|
|
@ -154,18 +152,11 @@ li.message
|
||||||
div.time
|
div.time
|
||||||
:color #bababa
|
:color #bababa
|
||||||
:font-size 70%
|
:font-size 70%
|
||||||
.mine
|
|
||||||
//:background-color rgba(202, 237, 204, 0.5)
|
|
||||||
|
|
||||||
#user_name
|
|
||||||
:font
|
|
||||||
:size 15px
|
|
||||||
:line-height 100%
|
|
||||||
|
|
||||||
h1
|
h1
|
||||||
:position relative
|
:position relative
|
||||||
:font
|
:font
|
||||||
:size 18px
|
:size 21px
|
||||||
:weight bold
|
:weight bold
|
||||||
:line-height 36px
|
:line-height 36px
|
||||||
|
|
||||||
|
|
@ -175,12 +166,16 @@ h1
|
||||||
:family 'helvetica neue', 'lucida grande', 'sans-serif'
|
:family 'helvetica neue', 'lucida grande', 'sans-serif'
|
||||||
:color #999
|
:color #999
|
||||||
:padding 0.1em
|
:padding 0.1em
|
||||||
|
:text
|
||||||
|
:shadow 0 1px 1px #ccc
|
||||||
|
|
||||||
h3
|
h3
|
||||||
:position relative
|
:position relative
|
||||||
:font
|
:font
|
||||||
:size 18px
|
:size 18px
|
||||||
:weight bold
|
:weight bold
|
||||||
|
:text
|
||||||
|
:shadow 0 1px 1px #ccc
|
||||||
|
|
||||||
#publish
|
#publish
|
||||||
input#thought
|
input#thought
|
||||||
|
|
@ -203,12 +198,12 @@ form
|
||||||
:max-width 100%
|
:max-width 100%
|
||||||
|
|
||||||
#user_name
|
#user_name
|
||||||
|
:margin
|
||||||
|
:bottom 1em
|
||||||
a
|
a
|
||||||
:color #000
|
:color #000
|
||||||
&:hover
|
&:hover
|
||||||
:color #CC1E14
|
:color #CC1E14
|
||||||
:text
|
|
||||||
:shadow 0 1px 0 #fff
|
|
||||||
|
|
||||||
#comment_text
|
#comment_text
|
||||||
:padding 3px
|
:padding 3px
|
||||||
|
|
@ -237,6 +232,10 @@ ul.comment_set
|
||||||
:font
|
:font
|
||||||
:weight bold
|
:weight bold
|
||||||
|
|
||||||
|
.new_comment
|
||||||
|
:display none
|
||||||
|
|
||||||
|
|
||||||
img#profile_picture
|
img#profile_picture
|
||||||
:width 100%
|
:width 100%
|
||||||
|
|
||||||
|
|
@ -248,7 +247,14 @@ img#user_picture
|
||||||
:padding 3px
|
:padding 3px
|
||||||
|
|
||||||
.destroy_link
|
.destroy_link
|
||||||
:float right
|
:position absolute
|
||||||
|
:right 0
|
||||||
|
:bottom 15px
|
||||||
|
:display none
|
||||||
|
a
|
||||||
|
:color #999
|
||||||
|
:font
|
||||||
|
:weight normal
|
||||||
|
|
||||||
#debug_info
|
#debug_info
|
||||||
:margin-top 20px
|
:margin-top 20px
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue