diff --git a/app/assets/stylesheets/specific/tags.scss b/app/assets/stylesheets/specific/tags.scss index 39b0593b7..f94a9f431 100644 --- a/app/assets/stylesheets/specific/tags.scss +++ b/app/assets/stylesheets/specific/tags.scss @@ -11,7 +11,3 @@ div#c-tags { } } } - -#mobile-tag-list { - display: none; -} diff --git a/app/controllers/favorites_controller.rb b/app/controllers/favorites_controller.rb index e006e6bed..564a5a11f 100644 --- a/app/controllers/favorites_controller.rb +++ b/app/controllers/favorites_controller.rb @@ -32,9 +32,6 @@ class FavoritesController < ApplicationController end respond_with(@post) do |format| - format.html do - redirect_to(mobile_post_path(@post)) - end format.js format.json do if @post @@ -51,16 +48,11 @@ class FavoritesController < ApplicationController if @post @post.remove_favorite!(CurrentUser.user) - path = mobile_post_path(@post) else Favorite.remove(post_id: params[:id], user: CurrentUser.user) - path = mobile_posts_path end respond_with(@post) do |format| - format.html do - redirect_to(path) - end format.js format.json do render :json => {:success => true}.to_json diff --git a/app/controllers/mobile/posts_controller.rb b/app/controllers/mobile/posts_controller.rb deleted file mode 100644 index 7f1c95b7b..000000000 --- a/app/controllers/mobile/posts_controller.rb +++ /dev/null @@ -1,18 +0,0 @@ -class Mobile::PostsController < ApplicationController - layout "mobile" - before_filter :set_mobile_mode - - def index - @post_set = PostSets::Post.new(params[:tags], params[:page], CurrentUser.user.per_page, raw: false) - @posts = @post_set.posts - end - - def show - @post = Post.find(params[:id]) - end - -private - def set_mobile_mode - CurrentUser.mobile_mode = true - end -end diff --git a/app/views/layouts/mobile.html.erb b/app/views/layouts/mobile.html.erb deleted file mode 100644 index eb7cd5ca1..000000000 --- a/app/views/layouts/mobile.html.erb +++ /dev/null @@ -1,21 +0,0 @@ - - -
-