diff --git a/app/views/blocks/profile_info_actions/_join_leave_community.rhtml b/app/views/blocks/profile_info_actions/_join_leave_community.rhtml index 047749a..1c23344 100644 --- a/app/views/blocks/profile_info_actions/_join_leave_community.rhtml +++ b/app/views/blocks/profile_info_actions/_join_leave_community.rhtml @@ -1,27 +1,29 @@ -<% if logged_in? %> - <% if profile.members.include?(user) %> - <%= button(:delete, content_tag('span', __('Leave community')), profile.leave_url, - :class => 'leave-community', - :title => _("Leave community"), - :style => 'position: relative;') %> - <%= button(:add, content_tag('span', __('Join')), profile.join_url, - :class => 'join-community', - :title => _("Join community"), - :style => 'position: relative; display: none;') %> - <% else %> - <% unless profile.already_request_membership?(user) %> +
diff --git a/public/designs/themes/base/style.css b/public/designs/themes/base/style.css index 5234410..69fc9af 100644 --- a/public/designs/themes/base/style.css +++ b/public/designs/themes/base/style.css @@ -506,6 +506,7 @@ div#notice { #content .people-block .block-footer-content a, #content .profile-list-block .block-footer-content a, #content .enterprises-block .block-footer-content a, +#content .members-block .block-footer-content a, #content .communities-block .block-footer-content a, #content .friends-block .block-footer-content a { position: absolute; @@ -515,34 +516,30 @@ div#notice { color: #000; text-decoration: none; padding-right: 15px; - background: url(imgs/arrow-right-p.png) 100% 50% no-repeat; } -#content .members-block .block-footer-content a { - position: absolute; - top: 2px; - right: 0px; - font-size: 11px; - color: #000; - text-decoration: none; - padding-right: 15px; +#content .tags-block .block-footer-content a, +#content .people-block .block-footer-content a, +#content .profile-list-block .block-footer-content a, +#content .enterprises-block .block-footer-content a, +#content .communities-block .block-footer-content a, +#content .friends-block .block-footer-content a { + background: url(imgs/arrow-right-p.png) 100% 50% no-repeat; } -#content .members-block .block-footer-content a.button { + +#content .members-block .block-footer-content .join-leave-button a { position: relative; - padding-left: 10px; background-color: #EEE; border: 1px solid #CCC; color: #555; + padding-right: inherit; } -#content .members-block .block-footer-content a.button:hover { + +#content .members-block .block-footer-content .join-leave-button a:hover { color: #FFF; background-color: #555; border: 1px solid #2e3436; text-decoration: none; } -#content .members-block .block-footer-content a.button span { - margin: 0px; - padding: 0px 0px 0px 7px; -} #content .profile-list-block .block-title { text-align: left; -- libgit2 0.21.2