Skip to content

Commit

Permalink
Merge pull request #79 from ruedap/staging
Browse files Browse the repository at this point in the history
Clean-up assets
  • Loading branch information
ruedap committed Jan 6, 2015
2 parents 1e6b269 + 903e0b0 commit 375dede
Show file tree
Hide file tree
Showing 42 changed files with 4 additions and 14 deletions.
Binary file removed app/assets/images/favicon-000.ico
Binary file not shown.
Binary file removed app/assets/images/favicon-020.ico
Binary file not shown.
Binary file removed app/assets/images/favicon-040.ico
Binary file not shown.
Binary file removed app/assets/images/favicon-060.ico
Binary file not shown.
Binary file removed app/assets/images/favicon-080.ico
Binary file not shown.
Binary file removed app/assets/images/favicon-100.ico
Binary file not shown.
Binary file removed app/assets/images/favicon-120.ico
Binary file not shown.
Binary file removed app/assets/images/favicon-140.ico
Binary file not shown.
Binary file removed app/assets/images/favicon-160.ico
Binary file not shown.
Binary file removed app/assets/images/favicon-180.ico
Binary file not shown.
Binary file removed app/assets/images/favicon-220.ico
Binary file not shown.
Binary file removed app/assets/images/favicon-240.ico
Binary file not shown.
Binary file removed app/assets/images/favicon-260.ico
Binary file not shown.
Binary file removed app/assets/images/favicon-280.ico
Binary file not shown.
Binary file removed app/assets/images/favicon-300.ico
Binary file not shown.
Binary file removed app/assets/images/favicon-320.ico
Binary file not shown.
Binary file removed app/assets/images/favicon-340.ico
Binary file not shown.
File renamed without changes.
Binary file removed app/assets/images/ogp-000.png
Binary file not shown.
Binary file removed app/assets/images/ogp-020.png
Binary file not shown.
Binary file removed app/assets/images/ogp-040.png
Binary file not shown.
Binary file removed app/assets/images/ogp-060.png
Binary file not shown.
Binary file removed app/assets/images/ogp-080.png
Binary file not shown.
Binary file removed app/assets/images/ogp-100.png
Binary file not shown.
Binary file removed app/assets/images/ogp-120.png
Binary file not shown.
Binary file removed app/assets/images/ogp-140.png
Binary file not shown.
Binary file removed app/assets/images/ogp-160.png
Binary file not shown.
Binary file removed app/assets/images/ogp-180.png
Binary file not shown.
Binary file removed app/assets/images/ogp-220.png
Binary file not shown.
Binary file removed app/assets/images/ogp-240.png
Binary file not shown.
Binary file removed app/assets/images/ogp-260.png
Binary file not shown.
Binary file removed app/assets/images/ogp-280.png
Binary file not shown.
Binary file removed app/assets/images/ogp-300.png
Binary file not shown.
Binary file removed app/assets/images/ogp-320.png
Binary file not shown.
Binary file removed app/assets/images/ogp-340.png
Binary file not shown.
File renamed without changes
1 change: 0 additions & 1 deletion app/assets/images/ruedapcom-logo.svg

This file was deleted.

7 changes: 0 additions & 7 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
class ApplicationController < ActionController::Base
include StagingGuard
protect_from_forgery with: :exception
before_action :set_hue

private

def set_hue
@hue = "%03d" % (rand(18) * 20)
end
end
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def blog_author
end

def blog_ogp_image
image_url("ogp-#{@hue}.png")
image_url("ogp.png")
end

private
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/articles_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module ArticlesHelper
def generate_article_list(articles)
def article_list(articles)
content_tag :ul, class: 'ArticleList' do
article_year = ''
articles.each do |a|
Expand Down
4 changes: 1 addition & 3 deletions app/views/articles/index.html.slim
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
= content_for :itemtype
= 'http://schema.org/WebPage'
= content_for :gradient
== stylesheet_link_tag "gradient-#{@hue}", media: 'all'

== generate_article_list(@articles)
== article_list(@articles)
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ html(lang='ja' itemscope itemtype="#{yield :itemtype}")
== stylesheet_link_tag 'application', media: 'all'
== javascript_include_tag 'application'
== csrf_meta_tags
== favicon_link_tag "favicon-#{@hue}.ico"
== favicon_link_tag "favicon.ico"
link rel='apple-touch-icon-precomposed' href="#{blog_ogp_image}"
link rel='alternate' href='/feed' title="#{blog_title}" type='application/atom+xml'
- if content_for? :canonical
Expand Down

0 comments on commit 375dede

Please sign in to comment.