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

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

parents 91f2e2e6 20d5043e
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -255,12 +255,15 @@ class User ...@@ -255,12 +255,15 @@ class User
end end
def terse_url def terse_url
terse= self.url.gsub(/https?:\/\//, '') terse = self.url.gsub(/(https?:|www\.)\/\//, '')
terse.gsub!(/www\./, '')
terse = terse.chop! if terse[-1, 1] == '/' terse = terse.chop! if terse[-1, 1] == '/'
terse terse
end end
def diaspora_handle
"#{self.username}@#{self.terse_url}"
end
def do_bad_things def do_bad_things
self.password_confirmation = self.password self.password_confirmation = self.password
end end
......
...@@ -18,7 +18,11 @@ ...@@ -18,7 +18,11 @@
%th url %th url
- for person in @people - for person in @people
%tr %tr
%td= person.real_name - if current_user.friends.include? person
%td= link_to person.real_name, person
- else
%td= person.real_name
%td= person.email %td= person.email
%td= person.url %td= person.url
......
...@@ -5,9 +5,12 @@ ...@@ -5,9 +5,12 @@
= form_for Request.new do |f| = form_for Request.new do |f|
= f.error_messages = f.error_messages
Enter a Diaspora URL, Diaspora username, or random email address: Enter a Diaspora username:
%br
%i= "Your Diaspora username is: #{current_user.diaspora_handle}"
%p %p
= f.label :destination_url, "Your Diaspora URL is: #{current_user.username}@#{request.host}" = f.label :destination_url, "Friend's username"
= f.text_field :destination_url = f.text_field :destination_url
= f.hidden_field :group_id, :value => @group.id = f.hidden_field :group_id, :value => @group.id
= f.submit = f.submit
......
#group_nav #group_nav
%ul %ul
%li{:class => ("selected" if @group == :all)}
= link_to "All Groups", root_url
- for group in @groups - for group in @groups
%li{:id => group.id, :class => ("selected" if current_group?(group))} %li{:id => group.id, :class => ("selected" if current_group?(group))}
%span.group_name %span.group_name
...@@ -9,9 +7,12 @@ ...@@ -9,9 +7,12 @@
%li.new_group= link_to("+", "#add_group_pane", :id => "add_group_button") %li.new_group= link_to("+", "#add_group_pane", :id => "add_group_button")
%li #group_edit_button
%span{:class => '⚙'} = link_to "edit", edit_group_path(Group.first), :class => "edit_group_button", :title => "Manage your facets."
= link_to "⚙", edit_group_path(Group.first), :class => "edit_group_button", :title => "Manage your facets."
%ul{ :style => "position:absolute;right:0;bottom:0;"}
%li{:class => ("selected" if @group == :all)}
= link_to "All Groups", root_url
.yo{ :style => "display:none;"} .yo{ :style => "display:none;"}
#add_group_pane #add_group_pane
......
...@@ -25,8 +25,13 @@ ...@@ -25,8 +25,13 @@
= link_to image_tag(photo.url(:thumb_medium)), "#" = link_to image_tag(photo.url(:thumb_medium)), "#"
=will_paginate @photos =will_paginate @photos
%h3 Info %h3 Info
%p
%b
DIASPORA USERNAME:
= @user.diaspora_handle
%p %p
= p.label :first_name = p.label :first_name
= p.text_field :first_name, :value => @profile.first_name = p.text_field :first_name, :value => @profile.first_name
...@@ -38,10 +43,6 @@ ...@@ -38,10 +43,6 @@
= f.label :email = f.label :email
= f.text_field :email = f.text_field :email
%p
= f.label :url
= f.text_field :url
#submit_block #submit_block
= link_to "Cancel", root_path = link_to "Cancel", root_path
or or
......
...@@ -448,12 +448,22 @@ h1.big_text { ...@@ -448,12 +448,22 @@ h1.big_text {
display: none; } display: none; }
#group_nav { #group_nav {
position: relative;
color: black; } color: black; }
#group_nav #group_edit_button {
display: inline;
margin-top: 1px;
font-size: 12px; }
#group_nav #group_edit_button a {
color: #999999; }
#group_nav ul { #group_nav ul {
margin-bottom: 0; margin-bottom: 0;
margin-right: 0;
padding: 0; padding: 0;
padding-bottom: 0px; padding-bottom: 0px;
padding-top: 35px; padding-top: 35px;
padding-right: 0;
display: inline-block;
list-style: none; list-style: none;
font-size: 14px; } font-size: 14px; }
#group_nav ul > li { #group_nav ul > li {
...@@ -462,6 +472,8 @@ h1.big_text { ...@@ -462,6 +472,8 @@ h1.big_text {
margin-right: 0.5em; margin-right: 0.5em;
padding: 3px 8px; padding: 3px 8px;
border: 1px solid #555555; } border: 1px solid #555555; }
#group_nav ul > li.last-child {
margin-right: 0; }
#group_nav ul > li a { #group_nav ul > li a {
color: #999999; } color: #999999; }
#group_nav ul > li a:hover { #group_nav ul > li a:hover {
......
...@@ -567,13 +567,28 @@ h1.big_text ...@@ -567,13 +567,28 @@ h1.big_text
:display none :display none
#group_nav #group_nav
:position relative
:color #000 :color #000
#group_edit_button
:display inline
:margin
:top 1px
:font
:size 12px
a
:color #999
ul ul
:margin :margin
:bottom 0 :bottom 0
:right 0
:padding 0 :padding 0
:bottom 0px :bottom 0px
:top 35px :top 35px
:right 0
:display inline-block
:list :list
:style none :style none
:font :font
...@@ -589,6 +604,10 @@ h1.big_text ...@@ -589,6 +604,10 @@ h1.big_text
:border 1px solid #555 :border 1px solid #555
&.last-child
:margin
:right 0
a a
:color #999 :color #999
&:hover &:hover
...@@ -602,6 +621,7 @@ h1.big_text ...@@ -602,6 +621,7 @@ h1.big_text
a a
:color #999 :color #999
.selected .selected
:font :font
......
...@@ -89,8 +89,6 @@ ul.button_set ...@@ -89,8 +89,6 @@ ul.button_set
.right .right
:position absolute :position absolute
:right 0 :right 0
:margin
:top 5px
.contextual_pane .contextual_pane
:z-index 20 :z-index 20
......
...@@ -57,8 +57,7 @@ ul.button_set { ...@@ -57,8 +57,7 @@ ul.button_set {
.right { .right {
position: absolute; position: absolute;
right: 0; right: 0; }
margin-top: 5px; }
.contextual_pane { .contextual_pane {
z-index: 20; z-index: 20;
......
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