Merge branch 'master' of github.com:diaspora/diaspora_rails
This commit is contained in:
commit
8f59a9d788
8 changed files with 68 additions and 79 deletions
|
|
@ -48,4 +48,8 @@ module ApplicationHelper
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def new_request(request_count)
|
||||||
|
"new_requests" if request_count > 0
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@
|
||||||
%html
|
%html
|
||||||
%head
|
%head
|
||||||
%title
|
%title
|
||||||
= current_user.real_name if current_user
|
= "#{current_user.real_name} | diaspora" if current_user
|
||||||
= " | diaspora"
|
|
||||||
%meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
|
%meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
|
||||||
|
|
||||||
= stylesheet_link_tag "blueprint/screen", :media => 'screen'
|
= stylesheet_link_tag "blueprint/screen", :media => 'screen'
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
= current_user.real_name
|
= current_user.real_name
|
||||||
|
|
|
|
||||||
= link_to "requests (#{@request_count})", requests_path
|
= link_to "requests (#{@request_count})", requests_path, :class => new_request(@request_count)
|
||||||
|
|
|
|
||||||
= link_to "logout", destroy_user_session_path
|
= link_to "logout", destroy_user_session_path
|
||||||
- else
|
- else
|
||||||
|
|
@ -41,18 +41,18 @@
|
||||||
|
|
||||||
= render "shared/publisher"
|
= render "shared/publisher"
|
||||||
.container
|
.container
|
||||||
|
.span-24.last
|
||||||
#content.span-24.last
|
|
||||||
.span-3.append-1.last
|
.span-3.append-1.last
|
||||||
= link_to owner_picture, root_path
|
= link_to owner_picture, root_path
|
||||||
= render 'people/sidebar' if user_signed_in?
|
= render 'people/sidebar' if user_signed_in?
|
||||||
|
|
||||||
.span-20
|
.span-20.last
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
%h1#user_name
|
%h1#user_name
|
||||||
= link_to current_user.real_name, root_url
|
= link_to current_user.real_name, root_path
|
||||||
%span.description
|
%span.description
|
||||||
= my_latest_message
|
= my_latest_message
|
||||||
= yield
|
= yield
|
||||||
.span-12
|
|
||||||
|
.span-20.last
|
||||||
= render "posts/debug"
|
= render "posts/debug"
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,4 @@
|
||||||
%ul#friend_stream.nav
|
%ul#friend_stream.nav
|
||||||
- for friend in @friends
|
- for friend in @friends
|
||||||
%li= link_to friend.real_name, person_path(friend)
|
%li= link_to friend.real_name, person_path(friend)
|
||||||
= link_to "add a new person", new_request_path
|
%li= link_to "add a new person", new_request_path
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
%li.message{:id => request.id}
|
%li.message{:id => request.id}
|
||||||
|
|
||||||
= "from #{request.person.real_name}"
|
%span.from
|
||||||
= "#{request.destination_url}"
|
= link_to "#{request.person.real_name}", '#'
|
||||||
|
|
||||||
.destroy_link
|
%ul.request_buttons
|
||||||
= link_to 'Accept', request_path(request, :accept => true), :method => :delete
|
%li= link_to 'Accept', request_path(request, :accept => true), :method => :delete
|
||||||
|
|
%li= link_to 'Ignore', request_path(request), :confirm => 'Are you sure?', :method => :delete
|
||||||
= link_to 'Ignore', request_path(request), :confirm => 'Are you sure?', :method => :delete
|
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ def create(backer_number)
|
||||||
|
|
||||||
# Create seed user
|
# Create seed user
|
||||||
username = backer_info[backer_number][2].gsub(/ /,'').downcase
|
username = backer_info[backer_number][2].gsub(/ /,'').downcase
|
||||||
user = User.create( :email => "#{username}@#{username}joindiaspora.com",
|
user = User.create( :email => "#{username}@#{username}.joindiaspora.com",
|
||||||
:password => "#{username+backer_info[backer_number][0].to_s}",
|
:password => "#{username+backer_info[backer_number][0].to_s}",
|
||||||
:profile => Profile.new( :first_name => backer_info[backer_number][1], :last_name => backer_info[backer_number][2] ),
|
:profile => Profile.new( :first_name => backer_info[backer_number][1], :last_name => backer_info[backer_number][2] ),
|
||||||
:url=> "#{username}.joindiaspora.com")
|
:url=> "#{username}.joindiaspora.com")
|
||||||
|
|
|
||||||
|
|
@ -29,12 +29,6 @@ $(document).ready(function(){
|
||||||
$(this).fadeTo(80, 1);
|
$(this).fadeTo(80, 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('ul.nav li').hover(function(){
|
|
||||||
$(this).fadeTo(60, 0.5);
|
|
||||||
}, function(){
|
|
||||||
$(this).fadeTo(80, 1);
|
|
||||||
});
|
|
||||||
|
|
||||||
$('#debug_info').click(function() {
|
$('#debug_info').click(function() {
|
||||||
$('#debug_more').toggle('fast', function() {
|
$('#debug_more').toggle('fast', function() {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,12 +11,11 @@ body {
|
||||||
margin: 0; }
|
margin: 0; }
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #316191;
|
|
||||||
color: #018790;
|
color: #018790;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-weight: bold; }
|
font-weight: bold; }
|
||||||
a:hover {
|
a:hover {
|
||||||
color: #bacca4; }
|
color: #018790; }
|
||||||
|
|
||||||
#flash_notice,
|
#flash_notice,
|
||||||
#flash_error,
|
#flash_error,
|
||||||
|
|
@ -97,6 +96,8 @@ header {
|
||||||
header #session_action a {
|
header #session_action a {
|
||||||
color: #777777;
|
color: #777777;
|
||||||
border: none; }
|
border: none; }
|
||||||
|
header #session_action a.new_requests {
|
||||||
|
color: #df0101; }
|
||||||
|
|
||||||
#show_filters {
|
#show_filters {
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
|
|
@ -108,19 +109,6 @@ header {
|
||||||
border: 1px solid #666666;
|
border: 1px solid #666666;
|
||||||
padding: 5px; }
|
padding: 5px; }
|
||||||
|
|
||||||
ul#stream_filters {
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
margin-bottom: 20px; }
|
|
||||||
ul#stream_filters li {
|
|
||||||
display: block;
|
|
||||||
padding: 8px 0;
|
|
||||||
border-bottom: 1px #eeeeee solid; }
|
|
||||||
ul#stream_filters a {
|
|
||||||
color: #b1cfe3; }
|
|
||||||
ul#stream_filters a:hover {
|
|
||||||
color: black; }
|
|
||||||
|
|
||||||
#main {
|
#main {
|
||||||
width: 100%; }
|
width: 100%; }
|
||||||
|
|
||||||
|
|
@ -134,6 +122,9 @@ ul#stream, ul#friend_stream {
|
||||||
border-bottom: 1px solid #f1f1f1;
|
border-bottom: 1px solid #f1f1f1;
|
||||||
margin-bottom: 5px; }
|
margin-bottom: 5px; }
|
||||||
|
|
||||||
|
ul#friend_stream > li {
|
||||||
|
padding: 0.2em 0; }
|
||||||
|
|
||||||
li.message {
|
li.message {
|
||||||
position: relative;
|
position: relative;
|
||||||
line-height: 140%;
|
line-height: 140%;
|
||||||
|
|
@ -144,8 +135,6 @@ li.message {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin-right: 0.2em;
|
margin-right: 0.2em;
|
||||||
font-size: 110%; }
|
font-size: 110%; }
|
||||||
li.message span.from a {
|
|
||||||
font-weight: bold; }
|
|
||||||
li.message div.time {
|
li.message div.time {
|
||||||
color: #bababa;
|
color: #bababa;
|
||||||
font-size: 70%; }
|
font-size: 70%; }
|
||||||
|
|
@ -174,8 +163,6 @@ form {
|
||||||
margin-bottom: 1em; }
|
margin-bottom: 1em; }
|
||||||
#user_name a {
|
#user_name a {
|
||||||
color: black; }
|
color: black; }
|
||||||
#user_name a:hover {
|
|
||||||
color: #cc1e14; }
|
|
||||||
|
|
||||||
div.comments {
|
div.comments {
|
||||||
display: none; }
|
display: none; }
|
||||||
|
|
@ -214,15 +201,29 @@ img#user_picture {
|
||||||
.pagination a {
|
.pagination a {
|
||||||
padding: 3px; }
|
padding: 3px; }
|
||||||
|
|
||||||
.destroy_link {
|
.destroy_link, .request_button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 15px;
|
bottom: 15px; }
|
||||||
display: none; }
|
.destroy_link a, .request_button a {
|
||||||
.destroy_link a {
|
|
||||||
color: #999999;
|
color: #999999;
|
||||||
font-weight: normal; }
|
font-weight: normal; }
|
||||||
|
|
||||||
|
.destroy_link {
|
||||||
|
display: none; }
|
||||||
|
|
||||||
|
.request_buttons {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
display: inline;
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0; }
|
||||||
|
.request_buttons > li {
|
||||||
|
display: inline; }
|
||||||
|
.request_buttons > li:first-child {
|
||||||
|
margin-right: 1em; }
|
||||||
|
|
||||||
#debug_info {
|
#debug_info {
|
||||||
margin-top: 20px; }
|
margin-top: 20px; }
|
||||||
|
|
||||||
|
|
@ -255,9 +256,6 @@ label {
|
||||||
top: 3px;
|
top: 3px;
|
||||||
left: 0.48em; }
|
left: 0.48em; }
|
||||||
|
|
||||||
ul.nav li > a {
|
|
||||||
display: block; }
|
|
||||||
|
|
||||||
#publisher {
|
#publisher {
|
||||||
padding: 0.5em 0;
|
padding: 0.5em 0;
|
||||||
background-color: #f2f8fc;
|
background-color: #f2f8fc;
|
||||||
|
|
|
||||||
|
|
@ -10,13 +10,12 @@ body
|
||||||
:padding 2em
|
:padding 2em
|
||||||
:margin 0
|
:margin 0
|
||||||
a
|
a
|
||||||
:color #316191
|
|
||||||
:color #018790
|
:color #018790
|
||||||
:text
|
:text
|
||||||
:decoration none
|
:decoration none
|
||||||
:font-weight bold
|
:font-weight bold
|
||||||
&:hover
|
&:hover
|
||||||
:color #BACCA4
|
:color #018790
|
||||||
|
|
||||||
#flash_notice,
|
#flash_notice,
|
||||||
#flash_error,
|
#flash_error,
|
||||||
|
|
@ -101,7 +100,6 @@ header
|
||||||
:text
|
:text
|
||||||
:shadow none
|
:shadow none
|
||||||
|
|
||||||
|
|
||||||
#session_action
|
#session_action
|
||||||
:float right
|
:float right
|
||||||
:margin
|
:margin
|
||||||
|
|
@ -110,6 +108,8 @@ header
|
||||||
a
|
a
|
||||||
:color #777
|
:color #777
|
||||||
:border none
|
:border none
|
||||||
|
&.new_requests
|
||||||
|
:color #DF0101
|
||||||
:padding-right 10px
|
:padding-right 10px
|
||||||
|
|
||||||
#show_filters
|
#show_filters
|
||||||
|
|
@ -121,22 +121,6 @@ header
|
||||||
#show_filters > a
|
#show_filters > a
|
||||||
:border 1px solid #666
|
:border 1px solid #666
|
||||||
:padding 5px
|
:padding 5px
|
||||||
|
|
||||||
ul#stream_filters
|
|
||||||
:padding 0
|
|
||||||
:margin 0
|
|
||||||
:bottom 20px
|
|
||||||
li
|
|
||||||
:display block
|
|
||||||
:padding 8px 0
|
|
||||||
:border
|
|
||||||
:bottom 1px #eee solid
|
|
||||||
|
|
||||||
a
|
|
||||||
:color #B1CFE3
|
|
||||||
&:hover
|
|
||||||
:color #000
|
|
||||||
|
|
||||||
#main
|
#main
|
||||||
:width 100%
|
:width 100%
|
||||||
|
|
||||||
|
|
@ -144,7 +128,6 @@ ul#stream, ul#friend_stream
|
||||||
:margin 0
|
:margin 0
|
||||||
:padding 0
|
:padding 0
|
||||||
:color #666
|
:color #666
|
||||||
|
|
||||||
> li
|
> li
|
||||||
:list-style none
|
:list-style none
|
||||||
:padding 1em 0
|
:padding 1em 0
|
||||||
|
|
@ -152,6 +135,10 @@ ul#stream, ul#friend_stream
|
||||||
:bottom 1px solid #f1f1f1
|
:bottom 1px solid #f1f1f1
|
||||||
:margin-bottom 5px
|
:margin-bottom 5px
|
||||||
|
|
||||||
|
ul#friend_stream
|
||||||
|
> li
|
||||||
|
:padding 0.2em 0
|
||||||
|
|
||||||
li.message
|
li.message
|
||||||
:position relative
|
:position relative
|
||||||
:line-height 140%
|
:line-height 140%
|
||||||
|
|
@ -167,9 +154,6 @@ li.message
|
||||||
:right 0.2em
|
:right 0.2em
|
||||||
:font
|
:font
|
||||||
:size 110%
|
:size 110%
|
||||||
a
|
|
||||||
:font
|
|
||||||
:weight bold
|
|
||||||
|
|
||||||
div.time
|
div.time
|
||||||
:color #bababa
|
:color #bababa
|
||||||
|
|
@ -206,8 +190,6 @@ form
|
||||||
:bottom 1em
|
:bottom 1em
|
||||||
a
|
a
|
||||||
:color #000
|
:color #000
|
||||||
&:hover
|
|
||||||
:color #CC1E14
|
|
||||||
|
|
||||||
div.comments
|
div.comments
|
||||||
:display none
|
:display none
|
||||||
|
|
@ -258,16 +240,32 @@ img#user_picture
|
||||||
a
|
a
|
||||||
:padding 3px
|
:padding 3px
|
||||||
|
|
||||||
.destroy_link
|
.destroy_link, .request_button
|
||||||
:position absolute
|
:position absolute
|
||||||
:right 0
|
:right 0
|
||||||
:bottom 15px
|
:bottom 15px
|
||||||
:display none
|
|
||||||
a
|
a
|
||||||
:color #999
|
:color #999
|
||||||
:font
|
:font
|
||||||
:weight normal
|
:weight normal
|
||||||
|
|
||||||
|
.destroy_link
|
||||||
|
:display none
|
||||||
|
|
||||||
|
.request_buttons
|
||||||
|
:position absolute
|
||||||
|
:right 0
|
||||||
|
:display inline
|
||||||
|
:list-style none
|
||||||
|
:margin 0
|
||||||
|
:padding 0
|
||||||
|
|
||||||
|
> li
|
||||||
|
:display inline
|
||||||
|
&:first-child
|
||||||
|
:margin-right 1em
|
||||||
|
|
||||||
|
|
||||||
#debug_info
|
#debug_info
|
||||||
:margin-top 20px
|
:margin-top 20px
|
||||||
|
|
||||||
|
|
@ -303,9 +301,6 @@ label
|
||||||
:top 3px
|
:top 3px
|
||||||
:left 0.48em
|
:left 0.48em
|
||||||
|
|
||||||
ul.nav li > a
|
|
||||||
:display block
|
|
||||||
|
|
||||||
#publisher
|
#publisher
|
||||||
:padding 0.5em 0
|
:padding 0.5em 0
|
||||||
:background
|
:background
|
||||||
|
|
@ -350,4 +345,3 @@ ul#publisher_content_pickers li
|
||||||
.selected
|
.selected
|
||||||
:border
|
:border
|
||||||
:bottom 3px solid #999
|
:bottom 3px solid #999
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue