From 0200c85d512145dff8fb62693afd4d9869a06842 Mon Sep 17 00:00:00 2001 From: ParleyMartins Date: Tue, 28 Oct 2014 11:01:53 -0200 Subject: [PATCH] Fix View all from sofware block to show only softwares. --- lib/softwares_block.rb | 4 ++-- public/style.css | 33 ++++++++++++++++++++++++++++++++- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/lib/softwares_block.rb b/lib/softwares_block.rb index d3620d2..d080516 100644 --- a/lib/softwares_block.rb +++ b/lib/softwares_block.rb @@ -19,11 +19,11 @@ class SoftwaresBlock < CommunitiesBlock case owner when Profile lambda do |context| - link_to s_('softwares|View all'), :profile => owner.identifier, :controller => 'profile', :action => 'communities' + link_to s_('softwares|View all'), :profile => owner.identifier, :controller => 'profile', :action => 'communities', :type => 'Software' end when Environment lambda do |context| - link_to s_('softwares|View all'), :controller => 'search', :action => 'communities' + link_to s_('softwares|View all'), :controller => 'search', :action => 'communities', :type => 'Software' end else '' diff --git a/public/style.css b/public/style.css index 038a277..8b9f1df 100644 --- a/public/style.css +++ b/public/style.css @@ -159,4 +159,35 @@ .autocomplete_validation_message { color: red; -} \ No newline at end of file +} + + +#content .institutions-block ul, +#content .softwares-block ul { + min-width: 196px; + width: 192px; + margin: 0px 0px 0px -3px; + padding: 0px; +} + +#content .box-1 .institutions-block ul, +#content .box-1 .softwares-block ul { + width: auto; + display: block; +} + +#content .institutions-block .block-footer-content a, +#content .softwares-block .block-footer-content a { + position: absolute; + top: 2px; + right: 0px; + font-size: 11px; + color: #000; + text-decoration: none; + padding-right: 15px; +} + +#content .institutions-block .block-footer-content a, +#content .softwares-block .block-footer-content a { + background: url(../../../designs/themes/base/imgs/arrow-right-p.png) 100% 50% no-repeat; +} -- libgit2 0.21.2