Commit 0200c85d512145dff8fb62693afd4d9869a06842

Authored by Parley
Committed by Luciano Prestes
1 parent bbabe06d
Exists in master and in 79 other branches add_sisp_to_chef, add_super_archives_plugin, api_for_colab, automates_core_packing, backup_not_prod, changes_in_buttons_on_content_panel, colab_automated_login, colab_spb_plugin_recipe, colab_widgets_settings, design_validation, dev_env_minimal, disable_email_dev, fix_breadcrumbs_position, fix_categories_software_link, fix_edit_institution, fix_edit_software_with_another_license, fix_get_license_info, fix_gitlab_assets_permission, fix_list_style_inside_article, fix_list_style_on_folder_elements, fix_members_pagination, fix_merge_request_url, fix_models_translations, fix_no_license, fix_software_api, fix_software_block_migration, fix_software_communities_translations, fix_software_communities_unit_test, fix_style_create_institution_admin_panel, fix_superarchives_imports, fix_sym_links_noosfero, focus_search_field_theme, gov-user-refactoring, gov-user-refactoring-rails4, header_fix, institution_modal_on_rating, kalibro-conf-refactoring, kalibro-processor-package, lxc_settings, margin_fix, mezuro_cookbook, prezento, refactor_download_block, refactor_software_communities, refactor_software_for_sisp, register_page, release-process, release-process-v2, remove-unused-images, remove_broken_theme, remove_secondary_email_from_user, remove_sisp_buttons, removing_super_archives_email, review_message, scope2method, signals_user_noosfero, sisp_catalog_header, sisp_colab_config, sisp_dev, sisp_dev_master, sisp_simple_version, software_as_organization, software_catalog_style_fix, software_communities_html_refactor, software_infos_api, spb_minimal_env, spb_to_rails4, spec_refactor, stable-4.1, stable-4.2, stable-4.x, temp_soft_comm_refactoring, theme_header, theme_javascript_refactory, thread_dropdown, thread_page, update_search_by_categories, update_software_api, update_softwares_boxes

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 &lt; CommunitiesBlock
19 19 case owner
20 20 when Profile
21 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 23 end
24 24 when Environment
25 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 27 end
28 28 else
29 29 ''
... ...
public/style.css
... ... @@ -159,4 +159,35 @@
159 159  
160 160 .autocomplete_validation_message {
161 161 color: red;
162   -}
163 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 +}
... ...