[Sprites] add sprites for icon images

This commit is contained in:
Juan Manuel Azambuja 2012-12-03 19:59:17 -02:00
parent 6c1a1ec6d2
commit f429cacd7a
26 changed files with 306 additions and 131 deletions

View file

@ -114,6 +114,7 @@ gem 'gon', '4.0.0'
group :assets do
gem 'bootstrap-sass', '2.0.3.1'
gem 'sass-rails', '3.2.5'
gem 'compass-rails'
# Windows and OSX have an execjs compatible runtime built-in, Linux users should
# install Node.js or use 'therubyracer'.

View file

@ -110,6 +110,7 @@ GEM
activesupport (>= 3.2.0)
childprocess (0.3.5)
ffi (~> 1.0, >= 1.0.6)
chunky_png (1.2.6)
client_side_validations (3.1.4)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
@ -119,6 +120,12 @@ GEM
execjs
coffee-script-source (1.3.3)
columnize (0.3.6)
compass (0.12.2)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
sass (~> 3.1)
compass-rails (1.0.3)
compass (>= 0.12.2, < 0.14)
crack (0.3.1)
cucumber (1.2.1)
builder (>= 2.1.2)
@ -178,6 +185,7 @@ GEM
foreman (0.57.0)
thor (>= 0.13.6)
formatador (0.2.3)
fssm (0.2.9)
fuubar (1.0.0)
rspec (~> 2.0)
rspec-instafail (~> 0.2.0)
@ -465,6 +473,7 @@ DEPENDENCIES
capybara (= 1.1.2)
carrierwave (= 0.6.2)
client_side_validations (= 3.1.4)
compass-rails
cucumber-rails (= 1.3.0)
database_cleaner (= 0.8)
debugger (= 1.2.0)

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 437 B

After

Width:  |  Height:  |  Size: 661 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 437 B

After

Width:  |  Height:  |  Size: 804 B

View file

@ -7,8 +7,6 @@ Diaspora.Pages.UsersGettingStarted = function() {
$('#edit_profile').bind('ajax:success', function(evt, data, status, xhr){
$('#gs-name-form-spinner').addClass("hidden");
$('.profile .saved').show();
$('.profile .saved').fadeOut(2000);
});
// It seems that the default behavior of rails ujs is to clear the remote form

View file

@ -1,8 +1,13 @@
@import 'compass'
@import 'ui.css.sass'
@import '_mixins.css.scss'
@import '_flash_messages.scss'
@import 'new_styles/_spinner'
/* ===== sprites ===== */
@import 'icons/*.png'
@include all-icons-sprites
/* ====== media ====== */
.media
:margin 10px
@ -403,6 +408,20 @@ ul.as-selections
&:hover
@include opacity(1)
.block_user
:display inline-block
.icons-ignoreuser
:height 14px
:width 13px
.delete
:display inline-block
.icons-deletelabel
:height 8px
:width 8px
.status_message_show
.comment_box
:width 653px
@ -697,6 +716,14 @@ form p.checkbox_select
:text
:align left
.icons-monotone_wrench_settings
:display inline-block
:width 16px
:height 16px
a.question_mark
:text-decoration none
#publisher_service_icons
:position relative
:top 3px
@ -761,7 +788,11 @@ form p.checkbox_select
:padding 3px
:position absolute
:right 6px
:top 0
:margin-top 9px
.icons-deletelabel
:height 8px
:width 8px
&:hover
@include opacity(1)
@ -1144,36 +1175,47 @@ h3 span.current_gs_step
:display inline-block
:margin-top 2px
:float left
:width 61px
a:hover
:text
:decoration none
.badge
:position relative
:top 2px
:display inline
:margin 0 2px
:padding 8px 3px
:bottom 9px
:font
:weight bold
:size smaller
:width 28px
:width 22px
&:hover
.badge_count
:background
:color lighten(#A40802, 5%)
a.badge_link
:display block
:width 100%
:height 16px
:float left
.icons-notifications_grey
:height 16px
.icons-mail_grey
:height 11px
#message_inbox_badge
img
:position relative
:top -2px
:float left
:padding 3px 3px 0px 0px
#notification_badge
img
:position relative
:float left
:padding 0px 3px 0px 3px
.badge_count
@include border-radius(2px)
@ -1248,6 +1290,11 @@ ul#request_result
:right 8px
:top 3px
.icons-monotone_plus_add_round,
.icons-monotone_check_yes
:height 20px
:width 20px
> .contacts
:margin 0
:padding 5px
@ -1290,12 +1337,10 @@ ul#request_result
:border
:bottom none
:height 12px !important
:width 12px !important
:padding
:right 4px
:left 4px
:min-width auto
:float right
:padding 2px 4px
:margin-top 5px
&.added
@include linear-gradient(rgb(158,255,153), rgb(92,199,86))
@ -1615,13 +1660,19 @@ ul#press_logos
:color #999
.likes
.img
.icons-heart
:height 12px
:width 13px
:display inline-block
:vertical-align top
:margin-top 3px
:margin-right 5px
img
:height 12px
:width 12px
.bd
:display inline-block
.expand_likes
:vertical-align text-bottom
.mark_all_read
:position relative
@ -1712,6 +1763,10 @@ ul#press_logos
:padding
:left 60px
.icons-monotone_email_letter_round
:height 128px
:width 128px
#email_invitation
input
:width 100%
@ -1836,6 +1891,10 @@ ul#press_logos
:top 118px
:right 5px
.icons-deletelabel
:height 8px
:width 8px
h3
:margin 0
:top 6px
@ -2113,7 +2172,6 @@ h1.tag
:bottom 1px solid #ddd
:padding 2px 0
:top 0
:left 22px
&.no_icon
:padding
@ -2126,16 +2184,47 @@ h1.tag
:font-weight bold
:color #777
.icons-plus,
.icons-heart,
.icons-question,
.icons-monotone_wrench_settings,
.icons-coffee,
.icons-bookmark,
:position absolute
:margin-left 3px
.icons-plus
:width 14px
:height 14px
.icons-heart
:width 13px
:height 13px
.icons-question
:width 16px
:height 16px
.icons-monotone_wrench_settings
:width 16px
:height 16px
.icons-bookmark
:width 14px
:height 16px
.icons-coffee
:width 16px
:height 14px
h5.title-header
:margin-left 22px
h5
:font-size 12px
:margin 0
:color #666
img
:position absolute
:left 3px
:top 0px
.section
.content
:padding 8px
@ -2211,14 +2300,47 @@ ul.left_nav
&.sub
:padding-left 6px
a.community_aspect_selector
:width 152px
:vertical-align middle
:display inline-block
:line-height 25px
:text
:decoration none
a
:color #777
:font-weight bold
:color #777
:text
:decoration none
ul.sub_nav
li:hover,
li.hover
@include border-radius(2px)
:background
:color lighten($blue,45%)
.edit,
.unfollow_icon
:display inline-block
.icons-monotone_close_exit_delete
:height 16px
:width 16px
.invisible
:visibility hidden
li
:position relative
:width 100%
.icons-check_yes_ok
:height 18px
:width 18px
:display inline-block
:margin-left 3px
:vertical-align middle
li.active
> a.home_selector:not(.sub_selected)
:font
@ -2231,12 +2353,6 @@ ul.left_nav
:weight 700
:color #666
> a.aspect_selector
:background
:image image-url("icons/check_yes_ok.png")
:position 3px 50%
:repeat no-repeat
a.aspect_selector,
a.home_selector,
a.tag_selector,
@ -2246,7 +2362,6 @@ ul.left_nav
:cursor -moz-grabbing
:cursor grabbing
a.aspect_selector,
a.home_selector,
a.tag_selector,
a.element_selector,
@ -2255,7 +2370,6 @@ ul.left_nav
:width 100%
:padding 3px 7px
a.aspect_selector,
a.home_selector,
a.tag_selector,
a.element_selector
@ -2266,8 +2380,8 @@ ul.left_nav
:text
:decoration none
.edit,
.unfollow_icon
:margin-right 10px
:margin-top 4px
@include transition(opacity)
@include opacity(0.3)
@ -2276,25 +2390,42 @@ ul.left_nav
&:hover
@include opacity(1)
.contact_count
.edit
:margin-right 10px
:margin-top 4px
:width 12px
:height 12px
:margin-top 6px
@include transition(opacity)
@include opacity(0.3)
:float right
:display none
&:hover
@include opacity(1)
.contact_count
:width 16px
:line-height 16px
:text-align center
@include border-radius(4px)
:margin-top 1px
:color #999
:background
:color #eee
:padding 0 5px
:display inline
:display inline-block
:font
:size 11px
a.home_selector
.contact_count
:float right
ul.sub_nav
:padding 0
:margin 0
li
:width 162px
:width 204px
a.aspect_selector,
a.toggle_selector,
.new_aspect,
a.tag_selector
@ -2310,12 +2441,32 @@ ul.left_nav
ul.sub_nav
:width 140px
a.aspect_selector,
a.aspect_selector
:width 112px
:vertical-align middle
:display inline-block
:line-height 25px
:text
:decoration none
a.tag_selector
:width 140px
li
:height 25px
.icons-check_yes_ok
:height 18px
:width 18px
:display inline-block
:margin-left 3px
:vertical-align middle
li:hover,
li.hover
width: 172px
@include border-radius(2px)
:background
:color lighten($blue,45%)
.edit,
.unfollow_icon
:display inline-block
@ -2388,6 +2539,10 @@ a.toggle_selector
:height 30px
:width 30px
.icons-monotone_close_exit_delete
:height 20px
:width 20px
#aspect_controls
@include border-radius(2px)
:background
@ -2415,12 +2570,25 @@ a.toggle_selector
:margin 5px 0
.bottom_submit_section
:overflow hidden
:display block
:position relative
:text-align right
form
:float left
:display inline-block
:text-align right
.creation
:float right
.icons-padlock-open,
.icons-padlock-closed
:float left
:height 16px
:width 16px
:margin
:left 4px
:top 2px
#no_contacts
:text-align center
@ -2429,10 +2597,6 @@ a.toggle_selector
:color #eee
:color #666
.left
:position absolute
:left 0
#notification_dropdown
@include dropdown-shadow
@ -2441,7 +2605,7 @@ a.toggle_selector
:left 300px
:width 380px
:display none
:margin-top 8px
:float left
:color #444
@ -2502,7 +2666,7 @@ a.toggle_selector
:margin
:left 0px
:padding
:bottom 10px
:bottom 12px
.cubbies_collage
:position absolute
@ -2785,11 +2949,13 @@ a.toggle_selector
.close
@include opacity(0)
@include transition(opacity, 0.2s)
:float right
:position relative
:top -9px
:top 1px
:right -5px
:float right
.icons-deletelabel
:height 8px
:width 8px
&:hover
.close

View file

@ -1,7 +1,7 @@
{{#if canRemove}}
<div class="controls">
<a href="#" class="delete comment_delete" title="{{t "delete"}}">
<img alt="Deletelabel" src="{{imageUrl "deletelabel.png"}}" />
<div alt="Deletelabel" class="icons-deletelabel" />
<a/>
</div>
{{/if}}

View file

@ -20,27 +20,30 @@
<div id="nav_badges">
<div class="badge badge-inverse" id="notification_badge">
<a href="/notifications" title="{{t "header.notifications"}}">
<img alt="{{t "header.notifications"}}" id="notification-flag" src="{{imageUrl "icons/notifications_grey.png"}}" />
<div class="badge_count {{#unless current_user.notifications_count}} hidden {{/unless}}">
{{current_user.notifications_count}}
</div>
</a>
<div class="icons-notifications_grey" >
<a href="/notifications" title="{{t "header.notifications"}}" class="badge_link" >
<div class="badge_count {{#unless current_user.notifications_count}} hidden {{/unless}}">
{{current_user.notifications_count}}
</div>
</a>
</div>
</div>
<div class="badge badge-inverse" id="message_inbox_badge">
<a href="/conversations" title="{{t "header.messages"}}">
<img alt="{{t "header.messages"}}" src="{{imageUrl "icons/mail_grey.png"}}" />
<div class="badge_count {{#unless current_user.unread_messages_count}} hidden {{/unless}}">
{{current_user.unread_messages_count}}
</div>
</a>
<div class="icons-mail_grey" >
<a href="/conversations" title="{{t "header.messages"}}" class="badge_link" >
<div class="badge_count {{#unless current_user.unread_messages_count}} hidden {{/unless}}">
{{current_user.unread_messages_count}}
</div>
</a>
</div>
</div>
<div id="notification_dropdown">
<div class="header">
<div class="right">
<a href="#" id="mark_all_read_link">
{{t "header.mark_all_as_read"}}
</a>

View file

@ -1,9 +1,7 @@
{{#if likesCount}}
<div class="comment">
<div class="media">
<span class="img">
<img alt="Heart" src="{{imageUrl "icons/heart.png"}}" />
</span>
<div alt="Heart" class="icons-heart"></div>
<div class="bd">
{{#unless likes_fetched}}

View file

@ -1,8 +1,8 @@
{{#if canRemove}}
<div class="controls">
<a href="#" class="delete comment_delete" title="{{t "delete"}}">
<img alt="Deletelabel" src="{{imageUrl "deletelabel.png"}}" />
<a/>
<div alt="Deletelabel" class="icons-deletelabel" />
<a/>
</div>
{{/if}}

View file

@ -4,14 +4,14 @@
<div class="controls">
{{#unless authorIsCurrentUser}}
<a href="#" rel="nofollow" class="block_user">
<img src="{{imageUrl "icons/ignoreuser.png"}}"" alt="Ignoreuser" class="control_icon" title="{{t "ignore"}}" />
<div class="icons-ignoreuser control_icon" title="{{t "ignore"}}"></div>
</a>
<a href="#" rel="nofollow" class="hide_post">
<img src="{{imageUrl "deletelabel.png"}}" class="delete control_icon" title="{{t "stream.hide"}}" />
<a href="#" rel="nofollow" class="delete hide_post">
<div class="icons-deletelabel delete control_icon" title="{{t "stream.hide"}}"/>
</a>
{{else}}
<a href="#" rel="nofollow" class="remove_post">
<img src="{{imageUrl "deletelabel.png"}}" class="delete control_icon" title="{{t "delete"}}" />
<a href="#" rel="nofollow" class="delete remove_post">
<div class="icons-deletelabel delete control_icon" title="{{t "delete"}}" />
</a>
{{/unless}}
</div>

View file

@ -41,7 +41,7 @@ module ApplicationHelper
end
def popover_with_close_html(without_close_html)
without_close_html + link_to(image_tag('deletelabel.png'), "#", :class => 'close')
without_close_html + link_to(content_tag(:div, nil, :class => 'icons-deletelabel'), "#", :class => 'close')
end
def diaspora_id_host

View file

@ -12,7 +12,7 @@ module AspectsHelper
end
def add_to_aspect_button(aspect_id, person_id)
link_to image_tag('icons/monotone_plus_add_round.png'),
link_to content_tag(:div, nil, :class => 'icons-monotone_plus_add_round'),
{:controller => 'aspect_memberships',
:action => 'create',
:aspect_id => aspect_id,
@ -25,7 +25,7 @@ module AspectsHelper
end
def remove_from_aspect_button(aspect_id, person_id)
link_to image_tag('icons/monotone_check_yes.png'),
link_to content_tag(:div, nil, :class => 'icons-monotone_check_yes'),
{:controller => "aspect_memberships",
:action => 'destroy',
:id => 42,

View file

@ -1,7 +1,7 @@
module ContactsHelper
def contact_aspect_dropdown(contact)
if @aspect
link_to(image_tag('icons/monotone_close_exit_delete.png', :height => 20, :width => 20),
link_to(content_tag(:div, nil, :class => 'icons-monotone_close_exit_delete'),
{:controller => "aspect_memberships",
:action => 'destroy',
:id => 42,
@ -17,4 +17,4 @@ module ContactsHelper
:current_user => current_user }
end
end
end
end

View file

@ -12,9 +12,11 @@
%a.toggle_selector{:href => '#'}
= stream.for_all_aspects? ? t('.deselect_all') : t('.select_all')
- for aspect in all_aspects
%li{:data => {:aspect_id => aspect.id}, :class => ("active" if defined?(stream) && stream.aspect_ids.include?(aspect.id))}
.edit
= link_to image_tag("icons/pencil.png", :title => t('.edit_aspect', :name => aspect.name)), edit_aspect_path(aspect), :rel => "facebox"
- active = defined?(stream) && stream.aspect_ids.include?(aspect.id)
%li.aspect_element{:data => {:aspect_id => aspect.id}, :class => ("active" if active)}
%a{:href => edit_aspect_path(aspect), :rel => 'facebox', :title => t('.edit_aspect', :name => aspect.name)}
.edit{ :class => 'icons-pencil' }
.icons-check_yes_ok{:class => ("invisible" unless active)}
%a.aspect_selector{:href => aspects_path("a_ids[]" => aspect.id), :class => "name", 'data-guid' => aspect.id}
= aspect

View file

@ -19,15 +19,14 @@
%br
.bottom_submit_section
.left
= button_to t('delete'), @aspect, :method => "delete", :data => { :confirm => t('.confirm_remove_aspect') }, :class => 'button delete'
- if @aspect.contacts_visible
= link_to image_tag('icons/padlock-open.png', :height => 16, :width => 16, :id => "contact_visibility_padlock", :class => 'open', :title => t('.aspect_list_is_visible')),
aspect_toggle_contact_visibility_path(@aspect), :method => :put, :remote => true
- else
= link_to image_tag('icons/padlock-closed.png', :height => 16, :width => 16, :id => "contact_visibility_padlock", :title => t('.aspect_list_is_not_visible')),
aspect_toggle_contact_visibility_path(@aspect), :method => :put, :remote => true
= button_to t('delete'), @aspect, :method => "delete", :data => { :confirm => t('.confirm_remove_aspect') }, :class => 'button delete'
- if @aspect.contacts_visible
= link_to content_tag(:div, nil, :class => 'icons-padlock-open', :id => "contact_visibility_padlock", :title => t('.aspect_list_is_visible')),
aspect_toggle_contact_visibility_path(@aspect), :class => 'contact_visibility_link', :method => :put, :remote => true
- else
= link_to content_tag(:div, nil, :class => 'icons-padlock-closed', :id => "contact_visibility_padlock", :title => t('.aspect_list_is_not_visible')),
aspect_toggle_contact_visibility_path(@aspect), :class => 'contact_visibility_link', :method => :put, :remote => true
= submit_tag t('.done'), :class => 'button creation', :rel => 'close'

View file

@ -2,13 +2,11 @@ $(document).ready(function() {
var padlockImg = $("#contact_visibility_padlock");
if(padlockImg.hasClass('open')) {
padlockImg.attr('src', 'images/icons/padlock-closed.png');
padlockImg.attr('title', "<%= t('aspects.edit.aspect_list_is_not_visible') %>");
if (padlockImg.hasClass('icons-padlock-open')) {
padlockImg.removeClass('icons-padlock-open');
padlockImg.addClass('icons-padlock-closed');
} else {
padlockImg.attr('src', 'images/icons/padlock-open.png');
padlockImg.attr('title', "<%= t('aspects.edit..aspect_list_is_visible') %>");
padlockImg.removeClass('icons-padlock-closed');
padlockImg.addClass('icons-padlock-open');
}
padlockImg.toggleClass('open');
});

View file

@ -11,11 +11,12 @@
%ul.sub_nav
- for aspect in all_aspects
%li{:data => {:aspect_id => aspect.id}, :class => ("active" if params["a_id"].to_i == aspect.id)}
%a.aspect_selector{:href => contacts_path(:a_id => aspect.id)}
%li.aspect_element{:data => {:aspect_id => aspect.id}, :class => ("active" if params["a_id"].to_i == aspect.id)}
.icons-check_yes_ok{:class => ("invisible" if params["a_id"].to_i != aspect.id) }
%a.community_aspect_selector{:href => contacts_path(:a_id => aspect.id)}
= aspect
.contact_count
= aspect.contacts.size
.contact_count
= aspect.contacts.size
%li
= link_to t('aspects.aspect_listings.add_an_aspect'), new_aspect_path, :class => "new_aspect", :rel => "facebox"
@ -27,9 +28,10 @@
= all_contacts_count
%ul.sub_nav
%li{:class => ("active" if params["set"] == "only_sharing")}
%a.aspect_selector{:href => contacts_path(:set => "only_sharing")}
%li.aspect_element{:class => ("active" if params["set"] == "only_sharing")}
.icons-check_yes_ok{:class => "invisible"}
%a.community_aspect_selector{:href => contacts_path(:set => "only_sharing")}
= t('contacts.index.only_sharing_with_me')
.contact_count
= only_sharing_count
.contact_count
= only_sharing_count

View file

@ -4,7 +4,7 @@
.conversation_participants
.right
= link_to(image_tag('deletelabel.png'), conversation_visibility_path(conversation), :method => 'delete', :data => { :confirm => "#{t('.delete')}?" }, :title => t('.delete'))
= link_to(content_tag(:div, nil, :class => 'icons-deletelabel'), conversation_visibility_path(conversation), :method => 'delete', :data => { :confirm => "#{t('.delete')}?" }, :title => t('.delete'))
%h3{ :class => direction_for(conversation.subject) }
= conversation.subject

View file

@ -1,6 +1,6 @@
.span-15.last
.span-3
= image_tag 'icons/monotone_email_letter_round.png', :height => "128px", :width => "128px"
.icons-monotone_email_letter_round
.span-12.last
%h2

View file

@ -15,7 +15,7 @@
%div
%params
#publisher_textarea_wrapper
= link_to( image_tag('deletelabel.png'), "#", :id => "hide_publisher", :title => t('.discard_post'))
= link_to(content_tag(:div, nil, :class => 'icons-deletelabel'), "#", :id => "hide_publisher", :title => t('.discard_post'))
%ul#photodropzone
- if current_user.getting_started?
= status.text_area :fake_text, :rows => 2, :value => h(publisher_formatted_text), :tabindex => 1, :placeholder => "#{t('contacts.index.start_a_conversation')}...",
@ -42,7 +42,8 @@
- if current_user.services
- for service in current_user.services
= image_tag "social_media_logos/#{service.provider}-16x16.png", :title => service.provider.titleize, :class => "service_icon dim", :id =>"#{service.provider}", :maxchar => "#{service.class::MAX_CHARACTERS}"
= link_to (image_tag "icons/monotone_wrench_settings.png"), "#question_mark_pane", :class => 'question_mark', :rel => 'facebox', :title => t('shared.public_explain.manage')
%a{ :href => "#question_mark_pane", :class => 'question_mark', :rel => 'facebox', :title => t('shared.public_explain.manage') }
.icons-monotone_wrench_settings
.dropdown{ ! current_user.getting_started? ? {:class => "hang_right"} : { :class => "hang_right", :title => popover_with_close_html("2. #{t('shared.public_explain.control_your_audience')}"), 'data-content'=> t('shared.public_explain.visibility_dropdown')} }
.button.toggle.publisher

View file

@ -6,16 +6,16 @@
- if AppConfig[:open_invitations]
.section
.title
= image_tag('icons/plus.png')
%h5
.icons-plus
%h5.title-header
= t('shared.invitations.invite_your_friends')
.content
= render "shared/invitations"
.section
.title
= image_tag('icons/heart.png')
%h5
.icons-heart
%h5.title-header
= t('aspects.index.new_here.title')
.content
!= t('aspects.index.new_here.follow', :link => link_to("#"+t('shared.publisher.new_user_prefill.newhere'), tag_path(:name => t('shared.publisher.new_user_prefill.newhere'))))
@ -24,8 +24,8 @@
.section
.title
= image_tag('icons/question.png')
%h5
.icons-question
%h5.title-header
= t('aspects.index.help.need_help')
.content
= t('aspects.index.help.here_to_help')
@ -47,8 +47,8 @@
- unless AppConfig.configured_services.blank? || all_services_connected?
.section
.title
= image_tag('icons/monotone_wrench_settings.png')
%h5
.icons-monotone_wrench_settings
%h5.title-header
= t('aspects.index.services.heading')
.content
%div
@ -61,16 +61,16 @@
.section
.title
= image_tag('icons/bookmark.png')
%h5
.icons-bookmark
%h5.title-header
= t('bookmarklet.heading')
.content
!= t('bookmarklet.explanation', :link => link_to(t('bookmarklet.post_something'), magic_bookmarklet_link))
.section
.title
= image_tag('icons/coffee.png')
%h5
.icons-coffee
%h5.title-header
= t('aspects.index.donate')
.content
- if AppConfig[:paypal_hosted_button_id].present?

View file

@ -13,7 +13,9 @@
- for tg in tags
%li.unfollow{:id => "tag-following-#{tg.name}"}
.unfollow_icon.hidden
= link_to image_tag("icons/monotone_close_exit_delete.png", :height => 16, :title => t('aspects.index.unfollow_tag', :tag => tg.name)), tag_tag_followings_path(:name => tg.name, :remote => true), :data => { :confirm => t('are_you_sure') }, :method => :delete, :remote => true, :id => "unfollow_" + tg.name
= link_to content_tag(:div, nil, :class => "icons-monotone_close_exit_delete", :title => t('aspects.index.unfollow_tag', :tag => tg.name)),
tag_tag_followings_path(:name => tg.name, :remote => true),
:data => { :confirm => t('are_you_sure') }, :method => :delete, :remote => true, :id => "unfollow_" + tg.name
= link_to "##{tg.name}", tag_path(:name => tg.name), :class => "tag_selector"
%li
= form_for TagFollowing.new do |tg|

View file

@ -41,10 +41,6 @@
= text_field_tag 'profile[first_name]', current_user.person.profile.first_name
= image_tag 'ajax-loader.gif', :id => "gs-name-form-spinner", :class => "hidden"
%span.saved{:class => "hidden"}
= image_tag 'icons/check_yes_ok.png'
= t(".saved")
.clearfix
= label_tag :your_photo, t('profiles.edit.your_photo'), :class => "bootstrapped"
.input{:style => "position:relative;"}

View file

@ -1,7 +1,7 @@
When /^I click on "([^"]*)" aspect edit icon$/ do |aspect_name|
step %{I hover over the "ul.sub_nav > li:contains('#{aspect_name}')"}
within("#aspect_nav") do
find(:xpath, "//a[@rel='facebox'][.//img[@title='Edit #{aspect_name}']]").click
find('a > .edit').click
end
end