2015-08-04 02:12:39 +02:00
|
|
|
class TagsController < ApplicationController
|
|
|
|
def index
|
2015-11-09 17:01:43 +01:00
|
|
|
@cur_url = "/tags"
|
2016-11-24 15:14:36 +01:00
|
|
|
@title = I18n.t 'controllers.tags_controller.tagstitle'
|
2015-11-09 17:01:43 +01:00
|
|
|
|
2015-11-09 16:52:32 +01:00
|
|
|
@tags = Tag.all_with_story_counts_for(nil)
|
|
|
|
|
|
|
|
respond_to do |format|
|
|
|
|
format.html { render :action => "index" }
|
|
|
|
format.json { render :json => @tags }
|
|
|
|
end
|
2015-08-04 02:12:39 +02:00
|
|
|
end
|
|
|
|
end
|