Skip to content

Commit

Permalink
add bulletins block link to home page
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanttb committed Oct 3, 2017
1 parent ef2a3cd commit ab7f2c1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
Binary file modified app/assets/images/block_links.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion app/assets/stylesheets/home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ body.home {
background-position: -104px -104px;
}

&.about {
&.bulletins {
background-position: -208px -104px;
}
}
Expand Down Expand Up @@ -131,6 +131,10 @@ body.home {
&.data {
background-color: $violet;
}

&.bulletins {
background-color: $cyan;
}
}

.block-link-body {
Expand Down
6 changes: 0 additions & 6 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :load_groups

rescue_from ActionController::RoutingError, with: :render_not_found

def load_groups
access = Category.find_by_slug 'access'
@groups = DatumSource.where( { category_id: access.id } ).map { |ds| ds.group }.uniq
end

def not_found
raise ActionController::RoutingError.new( 'Not Found' )
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/refinery/pages/home.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<%#= link_to render( partial: 'block_link', locals: { block_name: 'data' } ), 'https://imdata.dev.berkmancenter.org' %>
<%= link_to render( partial: 'block_link', locals: { block_name: 'about' } ), refinery::marketable_page_path( 'about' ) %>
<%= link_to render( partial: 'block_link', locals: { block_name: 'bulletins' } ), refinery::marketable_page_path( 'bulletins' ) %>
</div>

<div class="container">
Expand Down
6 changes: 3 additions & 3 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ en:
header: Data
body: Documentation of all Internet Monitor data streams, filtering data offerings, and APIs.

about:
header: More
body: Information on Internet Monitor efforts, organization, and offerings.
bulletins:
header: Bulletins
body: GICMC Research Bulletins

blog:
posts:
Expand Down

0 comments on commit ab7f2c1

Please sign in to comment.