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

Merge branch 'group-top' of github.com:diaspora/diaspora_rails into group-top

Conflicts:
	app/views/albums/show.html.haml
	app/views/authors/show.html.haml
	app/views/layouts/application.html.haml
	app/views/photos/show.html.haml
parents c14bb5a4 6f1a596d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
.back .back
= link_to "⇧ home", root_path = link_to "⇧ home", root_path
Albums Albums
.button.right#add_album_button .right#add_album_button
= link_to 'New Album', "#" = link_to 'New Album', "#", :class => "button"
#add_album_box.contextual_pane #add_album_box.contextual_pane
= render "albums/new_album" = render "albums/new_album"
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#content_bottom #content_bottom
.back .back
= link_to "⇧ albums", albums_path = link_to "⇧ albums", albums_path
-if current_user.owns? @album -if current_user.owns? @album
.button.right .button.right
= link_to 'Edit Album', edit_album_path(@album) = link_to 'Edit Album', edit_album_path(@album)
...@@ -10,9 +10,8 @@ ...@@ -10,9 +10,8 @@
= stylesheet_link_tag "application", "ui", 'bubble' = stylesheet_link_tag "application", "ui", 'bubble'
/= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" /= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"
= javascript_include_tag 'jquery142', 'rails', 'google' = javascript_include_tag 'jquery142', 'rails', 'google'
= javascript_include_tag 'tiny_mce/tiny_mce', 'jquery.infieldlabel' = javascript_include_tag 'tiny_mce/tiny_mce', 'jquery.infieldlabel', 'jquery.cycle/jquery.cycle.min.js'
= javascript_include_tag 'jquery.cycle/jquery.cycle.min.js' = javascript_include_tag 'view', 'publisher', 'image_picker', 'group_nav'
= javascript_include_tag 'view', 'publisher', 'image_picker'
= render 'js/websocket_js' = render 'js/websocket_js'
= csrf_meta_tag = csrf_meta_tag
...@@ -41,6 +40,9 @@ ...@@ -41,6 +40,9 @@
= 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
= render "shared/group_nav"
.container .container
- if user_signed_in? - if user_signed_in?
...@@ -62,12 +64,6 @@ ...@@ -62,12 +64,6 @@
.container .container
.span-24.last .span-24.last
.span-20.append-1.last = yield
.span-24.last
= yield = render "posts/debug"
.span-3.last
= render 'people/sidebar' if user_signed_in?
.span-24.last
= render "posts/debug"
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
= link_to "⇧ #{@album.name}", album_path(@album) = link_to "⇧ #{@album.name}", album_path(@album)
= @photo.image = @photo.image
.button.right .right
= link_to 'Edit Photo', edit_photo_path(@photo) = link_to 'Edit Photo', edit_photo_path(@photo), :class => "button"
.sub_header .sub_header
= link_to "full size", @photo.image.url = link_to "full size", @photo.image.url
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#content_bottom #content_bottom
.back .back
= link_to "⇧ #{@album.name}", album_path(@album) = link_to "⇧ #{@album.name}", album_path(@album)
-if current_user.owns? @album -if current_user.owns? @album
.button.right .button.right
= link_to 'Delete Photo', @photo, :confirm => 'Are you sure?', :method => :delete = link_to 'Delete Photo', @photo, :confirm => 'Are you sure?', :method => :delete
......
#group
%ul
%li.other_presidents= link_to "OTHER PRESIDENTS", root_path(:g => "other_presidents")
%li.ostatus= link_to "OSTATUS", ostatus_path(:g => "ostatus")
%li.new_circle= link_to "NEW CIRCLE", "#"
#friend_pictures
- for friend in @friends
= person_image_link(friend)
-for author in @subscribed_persons
= link_to (image_tag author.avatar_thumbnail, :class => "person_picture"), author_path(author)
.add_new
= link_to "+", requests_path
...@@ -14,4 +14,4 @@ ...@@ -14,4 +14,4 @@
- if current_user.owns?(post) - if current_user.owns?(post)
.destroy_link .destroy_link
= link_to 'Delete', status_message_path(post), :confirm => 'Are you sure?', :method => :delete, :remote => true = link_to 'Delete', status_message_path(post), :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "delete"
$(document).ready( function() {
var vars = [], hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++)
{
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
}
$("."+vars['g']).addClass('selected');
$("#group img").load(function(){$(this).fadeIn("slow");});
});
...@@ -21,15 +21,7 @@ $(document).ready(function(){ ...@@ -21,15 +21,7 @@ $(document).ready(function(){
var show_comments_toggle = $(this).parent().prev().children(".show_post_comments"); var show_comments_toggle = $(this).parent().prev().children(".show_post_comments");
show_comments_toggle.html("hide comments ("+ ($(this).children().length - 1) + ")"); show_comments_toggle.html("hide comments ("+ ($(this).children().length - 1) + ")");
}; };
}); });
$('a').hover(function(){
if( $(this).children("img").length < 1 )
$(this).fadeTo(60, 0.5);
}, function(){
if( $(this).children("img").length < 1 )
$(this).fadeTo(80, 1);
});
$('#debug_info').click(function() { $('#debug_info').click(function() {
$('#debug_more').toggle('fast', function() { $('#debug_more').toggle('fast', function() {
...@@ -115,5 +107,8 @@ $(document).ready(function(){ ...@@ -115,5 +107,8 @@ $(document).ready(function(){
$(this).fadeIn("slow"); $(this).fadeIn("slow");
}); });
$(".delete").hover(function(){
$(this).toggleClass("button");
});
});//end document ready });//end document ready
...@@ -12,10 +12,12 @@ body { ...@@ -12,10 +12,12 @@ body {
a { a {
color: #018790; color: #018790;
text-decoration: none; color: #556270;
font-weight: bold; } text-decoration: none; }
a:hover { a:hover {
color: #018790; } color: white;
background-color: #018790;
background-color: #556270; }
#flash_notice, #flash_notice,
#flash_error, #flash_error,
...@@ -67,24 +69,23 @@ header { ...@@ -67,24 +69,23 @@ header {
margin-bottom: 30px; margin-bottom: 30px;
color: #555555; color: #555555;
background-color: #2b2726; background-color: #2b2726;
background-color: black;
border-bottom: 3px solid #333333; border-bottom: 3px solid #333333;
padding: 6px 0; padding: 6px 0;
padding-top: 0; } padding-top: 0; }
header #diaspora_text { header #diaspora_text {
margin-bottom: 1em;
font-family: "BrandonGrotesqueLightRegular"; font-family: "BrandonGrotesqueLightRegular";
font-size: 24px; font-size: 16px;
position: absolute;
border: none; border: none;
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: #666666; } color: #666666; }
header #diaspora_text span.sub_text { header #diaspora_text span.sub_text {
color: black;
text-shadow: none; } text-shadow: none; }
header #session_action { header #session_action {
float: right; float: right;
margin-top: 9px;
text-shadow: 0 1px 0 black; text-shadow: 0 1px 0 black;
padding-right: 10px; } padding-right: 10px; }
header #session_action a { header #session_action a {
...@@ -108,13 +109,12 @@ header { ...@@ -108,13 +109,12 @@ header {
ul#stream, ul#friend_stream { ul#stream, ul#friend_stream {
margin: 0; margin: 0;
padding: 0; padding: 0; }
color: #666666; }
ul#stream > li, ul#friend_stream > li { ul#stream > li, ul#friend_stream > li {
list-style: none; list-style: none;
padding: 15px 0; padding: 15px 0;
border-bottom: 1px solid #f1f1f1; margin-bottom: 5px;
margin-bottom: 5px; } border-bottom: 1px solid #eeeeee; }
ul#friend_stream > li { ul#friend_stream > li {
padding: 0.2em 0; } padding: 0.2em 0; }
...@@ -155,9 +155,10 @@ h3 { ...@@ -155,9 +155,10 @@ h3 {
font-weight: bold; } font-weight: bold; }
form { form {
position: relative;
font-size: 120%; font-size: 120%;
margin: 1em; margin: 1em;
margin-left: 0em; } margin-left: 0em; }
#user_name { #user_name {
margin-bottom: 20px; } margin-bottom: 20px; }
...@@ -300,7 +301,8 @@ label { ...@@ -300,7 +301,8 @@ label {
color: #999999; color: #999999;
position: absolute; position: absolute;
top: 3px; top: 3px;
left: 0.48em; } left: 0.48em;
font-weight: normal; }
#publisher { #publisher {
background-color: rgba(10, 81, 109, 0.05); background-color: rgba(10, 81, 109, 0.05);
...@@ -375,7 +377,6 @@ ul#publisher_content_pickers li { ...@@ -375,7 +377,6 @@ ul#publisher_content_pickers li {
h1.big_text { h1.big_text {
position: relative; position: relative;
line-height: auto; line-height: auto;
border-top: 2px solid #666666;
border-bottom: 1px solid #666666; border-bottom: 1px solid #666666;
text-align: center; } text-align: center; }
...@@ -385,7 +386,8 @@ h1.big_text { ...@@ -385,7 +386,8 @@ h1.big_text {
.back { .back {
position: absolute; position: absolute;
font-size: 12px; } font-size: 12px;
font-weight: normal; }
#content_bottom { #content_bottom {
position: relative; position: relative;
...@@ -422,3 +424,36 @@ h1.big_text { ...@@ -422,3 +424,36 @@ h1.big_text {
.image_cycle img { .image_cycle img {
display: none; } display: none; }
#group {
color: #333333; }
#group ul {
margin: 0;
padding: 0;
font-size: 14px; }
#group ul > li {
display: inline;
margin-right: 10px; }
#group ul > li.selected, #group ul > li.selected a {
color: white;
font-weight: bold;
font-size: 18px; }
#group a {
color: #333333;
font-weight: normal; }
#group #friend_pictures .add_new {
position: relative;
display: inline-block;
height: 40px;
width: 40px;
background-color: #222222;
text-align: center;
font-size: 40px; }
#group #friend_pictures .add_new a {
display: block;
position: absolute;
top: -13px;
left: 7px; }
#group #friend_pictures img {
display: none;
height: 40px; }
...@@ -11,12 +11,14 @@ body ...@@ -11,12 +11,14 @@ body
:margin 0 :margin 0
a a
:color #018790 :color #018790
:color #556270
:text :text
:decoration none :decoration none
:font-weight bold
&:hover &:hover
:color #018790 :color #fff
:background
:color #018790
:color #556270
#flash_notice, #flash_notice,
#flash_error, #flash_error,
...@@ -72,16 +74,18 @@ header ...@@ -72,16 +74,18 @@ header
:color #555 :color #555
:background :background
:color #2B2726 :color #2B2726
:color #000
:border :border
:bottom 3px solid #333 :bottom 3px solid #333
:padding 6px 0 :padding 6px 0
:top 0 :top 0
#diaspora_text #diaspora_text
:margin
:bottom 1em
:font :font
:family 'BrandonGrotesqueLightRegular' :family 'BrandonGrotesqueLightRegular'
:size 24px :size 16px
:position absolute
:border none :border none
:color #fff :color #fff
:text :text
...@@ -90,14 +94,11 @@ header ...@@ -90,14 +94,11 @@ header
:color #666 :color #666
span.sub_text span.sub_text
:color #000
:text :text
:shadow none :shadow none
#session_action #session_action
:float right :float right
:margin
:top 9px
:text-shadow 0 1px 0 #000 :text-shadow 0 1px 0 #000
a a
:color #777 :color #777
...@@ -121,13 +122,12 @@ header ...@@ -121,13 +122,12 @@ header
ul#stream, ul#friend_stream ul#stream, ul#friend_stream
:margin 0 :margin 0
:padding 0 :padding 0
:color #666
> li > li
:list-style none :list-style none
:padding 15px 0 :padding 15px 0
:border
:bottom 1px solid #f1f1f1
:margin-bottom 5px :margin-bottom 5px
:border
:bottom 1px solid #eee
ul#friend_stream ul#friend_stream
> li > li
...@@ -181,11 +181,11 @@ h3 ...@@ -181,11 +181,11 @@ h3
:weight bold :weight bold
form form
:position relative
:font :font
:size 120% :size 120%
:margin 1em :margin 1em
:margin-left 0em :left 0em
#user_name #user_name
:margin :margin
...@@ -366,6 +366,8 @@ label ...@@ -366,6 +366,8 @@ label
:position absolute :position absolute
:top 3px :top 3px
:left 0.48em :left 0.48em
:font
:weight normal
#publisher #publisher
:background :background
...@@ -465,7 +467,7 @@ h1.big_text ...@@ -465,7 +467,7 @@ h1.big_text
:position relative :position relative
:line-height auto :line-height auto
:border :border
:top 2px solid #666 //:top 2px solid #666
:bottom 1px solid #666 :bottom 1px solid #666
:text :text
:align center :align center
...@@ -479,6 +481,7 @@ h1.big_text ...@@ -479,6 +481,7 @@ h1.big_text
:position absolute :position absolute
:font :font
:size 12px :size 12px
:weight normal
#content_bottom #content_bottom
:position relative :position relative
...@@ -528,3 +531,45 @@ h1.big_text ...@@ -528,3 +531,45 @@ h1.big_text
.image_cycle .image_cycle
img img
:display none :display none
#group
:color #333
ul
:margin 0
:padding 0
:font
:size 14px
> li
:display inline
:margin
:right 10px
&.selected, &.selected a
:color #fff
:font
:weight bold
:size 18px
a
:color #333
:font
:weight normal
#friend_pictures
.add_new
:position relative
:display inline-block
:height 40px
:width 40px
:background
:color #222
:text-align center
:font-size 40px
a
:display block
:position absolute
:top -13px
:left 7px
img
:display none
:height 40px
...@@ -5,21 +5,22 @@ ...@@ -5,21 +5,22 @@
:display inline :display inline
:color #777 :padding 4px
:font-size 12px :font-size 12px
:line-height 100% :line-height 100%
:text-shadow 0 1px 0 #fff :text-shadow 0 1px 0 #fff
:min-height 14px :min-height 10px
:background -webkit-gradient(linear, 0% 29%, 0% 85%, from(#FAFAFA), to(#E0E0E0)) :background -webkit-gradient(linear, 0% 29%, 0% 85%, from(#FCFCFC), to(#F6F6F6))
:background -moz-linear-gradient(top, #FAFAFA, #E0E0E0) :background -moz-linear-gradient(top, #FCFCFC, #F6F6F6)
:border 1px solid #ccc :border 1px solid #EEE
:bottom 1px solid #666 :bottom 1px solid #999
:left 1px solid #999 :left 1px solid #ccc
:right 1px solid #999 :right 1px solid #ccc
:border-radius 3px :border-radius 3px
:-moz-border-radius 3px :-moz-border-radius 3px
...@@ -27,28 +28,31 @@ ...@@ -27,28 +28,31 @@
:cursor pointer :cursor pointer
:box-shadow 0 1px 1px #eee
:-webkit-box-shadow 0 1px 1px #eee
:-moz-box-shadow 0 1px 1px #eee
:box-shadow 0 1px 1px #ccc :font-weight normal
:-webkit-box-shadow 0 1px 1px #ccc
:-moz-box-shadow 0 1px 1px #ccc
a
:font-weight normal
:color #777
:color #666
.button &:hover
:padding 5px :color #666
:background -webkit-gradient(linear, 0% 29%, 0% 85%, from(#FAFAFA), to(#F0F0F0))
:background -moz-linear-gradient(top, #FAFAFA, #F0F0F0)
&:active &:active
:box-shadow 0 0px 2px #000 :color #666
:-webkit-box-shadow 0 0px 2px #000 :background -webkit-gradient(linear, 0% 29%, 0% 85%, from(#F0F0F0), to(#FAFAFA))
:-moz-box-shadow 0 0px 2px #000 :background -moz-linear-gradient(top, #F0F0F0, #FAFAFA)
:color #555 :border
:top 1px solid #ccc
ul.button_set ul.button_set
:padding 5px 0 :padding
:left 0
:right 0
> li > li
:padding 5px :padding 5px
...@@ -75,8 +79,8 @@ ul.button_set ...@@ -75,8 +79,8 @@ ul.button_set
:right none :right none
.button .selected, .button_set .selected .button .selected, .button_set .selected
:background -webkit-gradient(linear, 0% 29%, 0% 85%, from(#E0E0E0), to(#FAFAFA)) :background -webkit-gradient(linear, 0% 29%, 0% 85%, from(#F0F0F0), to(#FAFAFA))
:background -moz-linear-gradient(top, #e0e0e0, #fafafa) :background -moz-linear-gradient(top, #F0F0F0, #fafafa)
:border :border
:top 1px solid #aaa :top 1px solid #aaa
......
...@@ -2,38 +2,39 @@ ...@@ -2,38 +2,39 @@
font-family: "Lucida Grande", sans-serif; font-family: "Lucida Grande", sans-serif;
font-style: normal; font-style: normal;
display: inline; display: inline;
color: #777777; padding: 4px;
font-size: 12px; font-size: 12px;
line-height: 100%; line-height: 100%;
text-shadow: 0 1px 0 white; text-shadow: 0 1px 0 white;
min-height: 14px; min-height: 10px;
background: -webkit-gradient(linear, 0% 29%, 0% 85%, from(#fafafa), to(#e0e0e0)); background: -webkit-gradient(linear, 0% 29%, 0% 85%, from(#fcfcfc), to(#f6f6f6));
background: -moz-linear-gradient(top, #fafafa, #e0e0e0); background: -moz-linear-gradient(top, #fcfcfc, #f6f6f6);
border: 1px solid #cccccc; border: 1px solid #eeeeee;
border-bottom: 1px solid #666666; border-bottom: 1px solid #999999;
border-left: 1px solid #999999; border-left: 1px solid #cccccc;
border-right: 1px solid #999999; border-right: 1px solid #cccccc;
border-radius: 3px; border-radius: 3px;
-moz-border-radius: 3px; -moz-border-radius: 3px;
-webkit-border-radius: 3px; -webkit-border-radius: 3px;
cursor: pointer; cursor: pointer;
box-shadow: 0 1px 1px #cccccc; box-shadow: 0 1px 1px #eeeeee;
-webkit-box-shadow: 0 1px 1px #cccccc; -webkit-box-shadow: 0 1px 1px #eeeeee;
-moz-box-shadow: 0 1px 1px #cccccc; } -moz-box-shadow: 0 1px 1px #eeeeee;
.button a, .button_set a { font-weight: normal;
font-weight: normal; color: #666666; }
color: #777777; } .button:hover, .button_set:hover {
color: #666666;
.button { background: -webkit-gradient(linear, 0% 29%, 0% 85%, from(#fafafa), to(#f0f0f0));
padding: 5px; } background: -moz-linear-gradient(top, #fafafa, #f0f0f0); }
.button:active { .button:active, .button_set:active {
box-shadow: 0 0px 2px black; color: #666666;
-webkit-box-shadow: 0 0px 2px black; background: -webkit-gradient(linear, 0% 29%, 0% 85%, from(#f0f0f0), to(#fafafa));
-moz-box-shadow: 0 0px 2px black; background: -moz-linear-gradient(top, #f0f0f0, #fafafa);
color: #555555; } border-top: 1px solid #cccccc; }
ul.button_set { ul.button_set {
padding: 5px 0; } padding-left: 0;
padding-right: 0; }
ul.button_set > li { ul.button_set > li {
padding: 5px; padding: 5px;
display: inline; display: inline;
...@@ -50,8 +51,8 @@ ul.button_set { ...@@ -50,8 +51,8 @@ ul.button_set {
border-right: none; } border-right: none; }
.button .selected, .button_set .selected { .button .selected, .button_set .selected {
background: -webkit-gradient(linear, 0% 29%, 0% 85%, from(#e0e0e0), to(#fafafa)); background: -webkit-gradient(linear, 0% 29%, 0% 85%, from(#f0f0f0), to(#fafafa));
background: -moz-linear-gradient(top, #e0e0e0, #fafafa); background: -moz-linear-gradient(top, #f0f0f0, #fafafa);
border-top: 1px solid #aaaaaa; } border-top: 1px solid #aaaaaa; }
.right { .right {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter