Commit 0200c85d512145dff8fb62693afd4d9869a06842
Committed by
Luciano Prestes
1 parent
bbabe06d
Exists in
master
and in
5 other branches
Fix View all from sofware block to show only softwares.
Signed-off-by: Gustavo Jaruga <darksshades@gmail.com> Signed-off-by: Luciano Prestes <lucianopcbr@gmail.com> Signed-off-by: Parley Martins <parley@outlook.com>
Showing
2 changed files
with
34 additions
and
3 deletions
Show diff stats
lib/softwares_block.rb
@@ -19,11 +19,11 @@ class SoftwaresBlock < CommunitiesBlock | @@ -19,11 +19,11 @@ class SoftwaresBlock < CommunitiesBlock | ||
19 | case owner | 19 | case owner |
20 | when Profile | 20 | when Profile |
21 | lambda do |context| | 21 | lambda do |context| |
22 | - link_to s_('softwares|View all'), :profile => owner.identifier, :controller => 'profile', :action => 'communities' | 22 | + link_to s_('softwares|View all'), :profile => owner.identifier, :controller => 'profile', :action => 'communities', :type => 'Software' |
23 | end | 23 | end |
24 | when Environment | 24 | when Environment |
25 | lambda do |context| | 25 | lambda do |context| |
26 | - link_to s_('softwares|View all'), :controller => 'search', :action => 'communities' | 26 | + link_to s_('softwares|View all'), :controller => 'search', :action => 'communities', :type => 'Software' |
27 | end | 27 | end |
28 | else | 28 | else |
29 | '' | 29 | '' |
public/style.css
@@ -159,4 +159,35 @@ | @@ -159,4 +159,35 @@ | ||
159 | 159 | ||
160 | .autocomplete_validation_message { | 160 | .autocomplete_validation_message { |
161 | color: red; | 161 | color: red; |
162 | -} | ||
163 | \ No newline at end of file | 162 | \ No newline at end of file |
163 | +} | ||
164 | + | ||
165 | + | ||
166 | +#content .institutions-block ul, | ||
167 | +#content .softwares-block ul { | ||
168 | + min-width: 196px; | ||
169 | + width: 192px; | ||
170 | + margin: 0px 0px 0px -3px; | ||
171 | + padding: 0px; | ||
172 | +} | ||
173 | + | ||
174 | +#content .box-1 .institutions-block ul, | ||
175 | +#content .box-1 .softwares-block ul { | ||
176 | + width: auto; | ||
177 | + display: block; | ||
178 | +} | ||
179 | + | ||
180 | +#content .institutions-block .block-footer-content a, | ||
181 | +#content .softwares-block .block-footer-content a { | ||
182 | + position: absolute; | ||
183 | + top: 2px; | ||
184 | + right: 0px; | ||
185 | + font-size: 11px; | ||
186 | + color: #000; | ||
187 | + text-decoration: none; | ||
188 | + padding-right: 15px; | ||
189 | +} | ||
190 | + | ||
191 | +#content .institutions-block .block-footer-content a, | ||
192 | +#content .softwares-block .block-footer-content a { | ||
193 | + background: url(../../../designs/themes/base/imgs/arrow-right-p.png) 100% 50% no-repeat; | ||
194 | +} |