Skip to content
Snippets Groups Projects
Commit f4ff234b authored by Arnaud Levy's avatar Arnaud Levy
Browse files

adjust

parent 4332b5cd
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ class Showcase::WebsitesController < Showcase::ApplicationController
@tags = Communication::Website::Showcase::Tag.all.ordered
@features = Communication::Website::Showcase.features
@websites = Communication::Website.in_showcase
.ordered_by_production_date
.page(params[:page])
end
......
......@@ -117,6 +117,10 @@ class Communication::Website < ApplicationRecord
scope :for_update, -> (autoupdate, language = nil) { where(autoupdate_theme: autoupdate) }
scope :with_url, -> { where.not(url: [nil, '']) }
scope :with_access_token, -> { where.not(access_token: [nil, '']) }
scope :ordered_by_production_date, -> {
# TODO add in_production_at and use it
order(created_at: :desc)
}
def to_s
original_localization.to_s
......
......@@ -24,7 +24,7 @@ current_year = nil
<%= kamifusen_tag website.screenshot,
class: 'img-fluid rounded mb-3' %>
<% end %>
<h3 class="h4">
<h3 class="fs-6 mt-3">
<%= link_to website.original_localization.to_s,
showcase_website_path(website),
class: 'stretched-link' %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment