Sha256: 335e9086471660d87b4caf9dd7996b4cf7fc76f974ce689d4fdfdbcf5abdd79c
Contents?: true
Size: 856 Bytes
Versions: 24
Compression:
Stored size: 856 Bytes
Contents
# frozen_string_literal: true class NotesController < ContentController require "json" layout :theme_layout after_action :set_blog_infos def index @notes = Note.published.page(params[:page]).per(this_blog.limit_article_display) if @notes.empty? @message = I18n.t("errors.no_notes_found") render "notes/error", status: :ok end end def show @note = Note.published.find_by! permalink: CGI.escape(params[:permalink]) if @note.in_reply_to_message.present? @reply = JSON.parse(@note.in_reply_to_message) render :show_in_reply end end private def set_blog_infos @keywords = this_blog.meta_keywords @page_title = this_blog.statuses_title_template.to_title(@notes, this_blog, params) @description = this_blog.statuses_desc_template.to_title(@notes, this_blog, params) end end
Version data entries
24 entries across 24 versions & 2 rubygems