Skip to content
Extraits de code Groupes Projets
Valider c34f5e5e rédigé par maxwell's avatar maxwell
Parcourir les fichiers

Merge branch 'master' of github.com:diaspora/diaspora_rails

parents 311a60f7 e5d29804
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -2,9 +2,9 @@ module DashboardsHelper ...@@ -2,9 +2,9 @@ module DashboardsHelper
def title_for_page def title_for_page
if params[:action] =='ostatus' if params[:action] =='ostatus'
'OStatus Dashboard' 'OStatus home'
else else
'Dashboard' 'home'
end end
end end
end end
%h1.big_text
=link_to 'albums', albums_path
>>
new album
= form_for @album do |f| = form_for @album do |f|
= f.error_messages = f.error_messages
%p %p
......
%h3= @album.name %h1.big_text
= link_to 'albums', albums_path
>>
= @album.name
-unless mine? @album -unless mine? @album
%h4= 'by ' + @album.person.real_name %h4= 'by ' + @album.person.real_name
-if mine? @album -if mine? @album
...@@ -9,5 +12,3 @@ ...@@ -9,5 +12,3 @@
-if mine? @album -if mine? @album
%p %p
= link_to "Destroy", @album, :confirm => 'Are you sure?', :method => :delete = link_to "Destroy", @album, :confirm => 'Are you sure?', :method => :delete
|
= link_to "View All", albums_path
- if user_signed_in?
%h1#user_name
= link_to current_user.real_name, root_path
%span.description
= my_latest_message
%h1= title_for_page %h1= title_for_page
= render "shared/publisher"
%ul#stream %ul#stream
- for post in @posts - for post in @posts
= render type_partial(post), :post => post = render type_partial(post), :post => post
......
...@@ -39,24 +39,25 @@ ...@@ -39,24 +39,25 @@
= link_to "logout", destroy_user_session_path = link_to "logout", destroy_user_session_path
- else - else
= link_to "login", new_user_session_path = link_to "login", new_user_session_path
.container
= link_to "home", root_path
|
= link_to "photos", albums_path
|
= link_to "ostatus", ostatus_path
%br
%br
= render "shared/publisher"
.container .container
.span-24.last .span-24.last
.span-3.append-1.last .span-3.append-2.last
= link_to person_image_tag(User.owner), root_path = link_to person_image_tag(User.owner), root_path
= link_to "Edit your profile", edit_user_path(current_user) = link_to "Edit your profile", edit_user_path(current_user)
%br %br
%br %br
= render 'people/sidebar' if user_signed_in? = render 'people/sidebar' if user_signed_in?
.span-19.last
.span-20.last
- if user_signed_in?
%h1#user_name
= link_to current_user.real_name, root_path
%span.description
= my_latest_message
= yield = yield
.span-24.last
= render "posts/debug" = render "posts/debug"
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
= linked_scaled_photo @photo, @album = linked_scaled_photo @photo, @album
#photo_pagination #photo_pagination
= link_to_prev @photo, @album %center
| = link_to_prev @photo, @album
= link_to_next @photo, @album |
= link_to_next @photo, @album
-if mine?(@photo) -if mine?(@photo)
%p %p
......
- title "New Request" %h1 requests
= render 'form' = render 'form'
......
#publisher #publisher
.container %sp
%sp Post a new
Post a new %ul#publisher_content_pickers
%ul#publisher_content_pickers %li{ :class => "status_message selected" }= link_to "status message", "#"
%li{ :class => "status_message" }= link_to "status message", "#" %li{ :class => "bookmark" }= link_to "bookmark", "#"
%li{ :class => "bookmark" }= link_to "bookmark", "#" %li{ :class => "blog" }= link_to "blog", "#"
%li{ :class => "blog" }= link_to "blog", "#"
%li= link_to "photos", albums_path
%li= link_to "ostatus", ostatus_path
#publisher_form #publisher_form
= form_for StatusMessage.new, :remote => true do |f| = form_for StatusMessage.new, :remote => true do |f|
= f.error_messages = f.error_messages
%p %p
%label{:for => "status_message_message"} Message %label{:for => "status_message_message"} Message
= f.text_area :message, :rows => 2 = f.text_area :message, :rows => 2
%p %p
= f.submit "Post" = f.submit "Post"
= form_for Bookmark.new, :remote => true do |f| = form_for Bookmark.new, :remote => true do |f|
= f.error_messages = f.error_messages
%p %p
%label{:for => "bookmark_title"} Title %label{:for => "bookmark_title"} Title
= f.text_field :title = f.text_field :title
%p %p
%label{:for => "bookmark_link"} Link %label{:for => "bookmark_link"} Link
= f.text_field :link = f.text_field :link
%p %p
= f.submit "Post" = 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
%label{:for => "blog_title"} Title %label{:for => "blog_title"} Title
= f.text_field :title = f.text_field :title
%p %p
%label{:for => "blog_body"} Body %label{:for => "blog_body"} Body
= f.text_area :body = f.text_area :body
%p %p
= f.submit "Post" = f.submit "Post"
%h1 user page!
.span-20.last .span-20.last
%h1= "#{@user.real_name}" %h1= "#{@user.real_name}"
- if @user_profile - if @user_profile
......
...@@ -14,9 +14,6 @@ ...@@ -14,9 +14,6 @@
$(this).toggleClass("selected"); $(this).toggleClass("selected");
$(form_id).delay(50).fadeIn(200); $(form_id).delay(50).fadeIn(200);
} else {
$("#publisher_content_pickers").children("li").removeClass("selected");
$("#publisher_form form").fadeOut(200);
} }
} }
}); });
...@@ -64,18 +64,14 @@ a { ...@@ -64,18 +64,14 @@ a {
header { header {
position: relative; position: relative;
margin: -2em; margin: -2em;
margin-bottom: 0; margin-bottom: 1em;
height: 50px;
color: #555555; color: #555555;
background-color: black;
background-color: -webkit-gradient(linear, 0% 0%, 0% 55%, from(#474747), to(black));
background-color: #414545;
background-color: #2b2726; background-color: #2b2726;
border-bottom: 1px solid #444444; border-bottom: 1px solid #444444;
padding-top: 20px; padding: 8px 0;
box-shadow: 0 2px 10px black; box-shadow: 0 2px 2px black;
-webkit-box-shadow: 0 2px 10px black; -webkit-box-shadow: 0 2px 2px black;
-moz-box-shadow: 0 2px 10px black; } -moz-box-shadow: 0 2px 2px black; }
header #diaspora_text { header #diaspora_text {
font-family: "BrandonGrotesqueLightRegular"; font-family: "BrandonGrotesqueLightRegular";
font-size: 24px; font-size: 24px;
...@@ -84,7 +80,7 @@ header { ...@@ -84,7 +80,7 @@ header {
color: white; color: white;
text-shadow: 0 2px 0 black; } text-shadow: 0 2px 0 black; }
header #diaspora_text a { header #diaspora_text a {
color: white; } color: #666666; }
header #diaspora_text span.sub_text { header #diaspora_text span.sub_text {
color: black; color: black;
text-shadow: none; } text-shadow: none; }
...@@ -160,6 +156,7 @@ form { ...@@ -160,6 +156,7 @@ form {
margin-left: 0em; } margin-left: 0em; }
#user_name { #user_name {
display: inline;
margin-bottom: 1em; } margin-bottom: 1em; }
#user_name a { #user_name a {
color: black; } color: black; }
...@@ -201,7 +198,8 @@ img.person_picture { ...@@ -201,7 +198,8 @@ img.person_picture {
display: inline block; } display: inline block; }
li.message > img.person_picture, li.message > img.person_picture,
li.comment > img.person_picture { li.comment > img.person_picture,
#session_action > img.person_picture {
height: 30px; height: 30px;
display: absolute; display: absolute;
float: left; float: left;
...@@ -269,42 +267,30 @@ label { ...@@ -269,42 +267,30 @@ label {
left: 0.48em; } left: 0.48em; }
#publisher { #publisher {
padding: 0.5em 0; background-color: rgba(10, 81, 109, 0.05);
background-color: #f2f8fc; border-bottom: 2px #999999 solid;
background-color: #333333;
border-bottom: 1px #eaeaea solid;
margin: 0 -2em;
margin-bottom: 2em;
color: #999999; color: #999999;
box-shadow: 0 2px 20px #999999; padding: 20px 1em;
-webkit-box-shadow: 0 2px 20px #999999; padding-top: 10px; }
-moz-box-shadow: 0 2px 20px #999999; }
#publisher sp {
text-shadow: 0 2px 0 black; }
#publisher textarea, #publisher input {
box-shadow: 0 0px 3px black;
-webkit-box-shadow: 0 0px 3px black;
-moz-box-shadow: 0 0px 3px #999999; }
#new_blog, #new_blog,
#new_bookmark, #new_bookmark {
#new_status_message {
display: none; } display: none; }
ul#publisher_content_pickers { ul#publisher_content_pickers {
display: inline; display: inline;
margin: 0 -10px; margin: 0 -10px;
padding: 0; padding: 0;
margin-left: 10px; margin-left: 10px; }
text-shadow: 0 2px 0 black; }
ul#publisher_content_pickers li { ul#publisher_content_pickers li {
display: inline; display: inline;
padding: 5px 10px; padding: 5px 10px;
margin-right: 5px; } margin-right: 5px; }
#publisher.selected { #publisher .selected {
border-bottom: 3px solid #999999; } border-bottom: 3px solid #999999;
background-color: rgba(10, 81, 109, 0.1); }
#image_picker .small_photo { #image_picker .small_photo {
height: 100px; height: 100px;
......
...@@ -68,21 +68,16 @@ a ...@@ -68,21 +68,16 @@ a
header header
:position relative :position relative
:margin -2em :margin -2em
:bottom 0 :bottom 1em
:height 50px
:color #555 :color #555
:background :background
:color #000
:color -webkit-gradient(linear, 0% 0%, 0% 55%, from(#474747), to(#000000))
:color rgb(65,69,69)
:color #2B2726 :color #2B2726
:border :border
:bottom 1px solid #444 :bottom 1px solid #444
:padding :padding 8px 0
:top 20px :box-shadow 0 2px 2px #000
:box-shadow 0 2px 10px #000 :-webkit-box-shadow 0 2px 2px #000
:-webkit-box-shadow 0 2px 10px #000 :-moz-box-shadow 0 2px 2px #000
:-moz-box-shadow 0 2px 10px #000
#diaspora_text #diaspora_text
:font :font
...@@ -94,7 +89,7 @@ header ...@@ -94,7 +89,7 @@ header
:text :text
:shadow 0 2px 0 #000 :shadow 0 2px 0 #000
a a
:color #fff :color #666
span.sub_text span.sub_text
:color #000 :color #000
...@@ -187,6 +182,7 @@ form ...@@ -187,6 +182,7 @@ form
#user_name #user_name
:display inline
:margin :margin
:bottom 1em :bottom 1em
a a
...@@ -239,7 +235,8 @@ img.person_picture ...@@ -239,7 +235,8 @@ img.person_picture
:display inline block :display inline block
li.message > img.person_picture, li.message > img.person_picture,
li.comment > img.person_picture li.comment > img.person_picture,
#session_action > img.person_picture
:height 30px :height 30px
:display absolute :display absolute
:float left :float left
...@@ -317,30 +314,16 @@ label ...@@ -317,30 +314,16 @@ label
:left 0.48em :left 0.48em
#publisher #publisher
:padding 0.5em 0
:background :background
:color #F2F8FC :color rgba(10,81,109,0.05)
:color #333
:border :border
:bottom 1px #eaeaea solid :bottom 2px #999 solid
:margin 0 -2em
:bottom 2em
:color #999 :color #999
:box-shadow 0 2px 20px #999 :padding 20px 1em
:-webkit-box-shadow 0 2px 20px #999 :top 10px
:-moz-box-shadow 0 2px 20px #999
sp
:text-shadow 0 2px 0 #000
textarea, input
:box-shadow 0 0px 3px #000
:-webkit-box-shadow 0 0px 3px #000
:-moz-box-shadow 0 0px 3px #999
#new_blog, #new_blog,
#new_bookmark, #new_bookmark
#new_status_message
:display none :display none
ul#publisher_content_pickers ul#publisher_content_pickers
...@@ -349,7 +332,6 @@ ul#publisher_content_pickers ...@@ -349,7 +332,6 @@ ul#publisher_content_pickers
:padding 0 :padding 0
:margin :margin
:left 10px :left 10px
:text-shadow 0 2px 0 #000
ul#publisher_content_pickers li ul#publisher_content_pickers li
:display inline :display inline
...@@ -357,9 +339,11 @@ ul#publisher_content_pickers li ...@@ -357,9 +339,11 @@ ul#publisher_content_pickers li
:margin :margin
:right 5px :right 5px
#publisher.selected #publisher .selected
:border :border
:bottom 3px solid #999 :bottom 3px solid #999
:background
:color rgba(10,81,109,0.1)
#image_picker #image_picker
.small_photo .small_photo
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter