mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 04:21:42 +00:00
Merge branch 'issue-13091-1' into 'rails'
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: reorder template designs according to complexity #13091 See merge request sutty/sutty!160
This commit is contained in:
commit
4c0e29b233
4 changed files with 21 additions and 4 deletions
|
@ -55,7 +55,7 @@
|
||||||
layouts: site.incompatible_layouts.to_sentence)
|
layouts: site.incompatible_layouts.to_sentence)
|
||||||
.row.row-cols-1.row-cols-md-2.designs
|
.row.row-cols-1.row-cols-md-2.designs
|
||||||
-# Demasiado complejo para un f.collection_radio_buttons
|
-# Demasiado complejo para un f.collection_radio_buttons
|
||||||
- Design.all.find_each do |design|
|
- Design.all.order(priority: :desc).each do |design|
|
||||||
.design.col.d-flex.flex-column
|
.design.col.d-flex.flex-column
|
||||||
.custom-control.custom-radio
|
.custom-control.custom-radio
|
||||||
= f.radio_button :design_id, design.id,
|
= f.radio_button :design_id, design.id,
|
||||||
|
|
5
db/migrate/20230415153231_add_priority_to_designs.rb
Normal file
5
db/migrate/20230415153231_add_priority_to_designs.rb
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
class AddPriorityToDesigns < ActiveRecord::Migration[6.1]
|
||||||
|
def change
|
||||||
|
add_column :designs, :priority, :integer
|
||||||
|
end
|
||||||
|
end
|
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 2021_10_22_225449) do
|
ActiveRecord::Schema.define(version: 2023_04_15_153231) do
|
||||||
|
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "pg_trgm"
|
enable_extension "pg_trgm"
|
||||||
|
@ -217,6 +217,7 @@ ActiveRecord::Schema.define(version: 2021_10_22_225449) do
|
||||||
t.boolean "disabled", default: false
|
t.boolean "disabled", default: false
|
||||||
t.text "credits"
|
t.text "credits"
|
||||||
t.string "designer_url"
|
t.string "designer_url"
|
||||||
|
t.integer "priority"
|
||||||
end
|
end
|
||||||
|
|
||||||
create_table "indexed_posts", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
create_table "indexed_posts", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
|
||||||
|
@ -380,6 +381,7 @@ ActiveRecord::Schema.define(version: 2021_10_22_225449) do
|
||||||
|
|
||||||
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
|
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
|
||||||
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
|
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
|
||||||
|
|
||||||
create_trigger("indexed_posts_before_insert_update_row_tr", :compatibility => 1).
|
create_trigger("indexed_posts_before_insert_update_row_tr", :compatibility => 1).
|
||||||
on("indexed_posts").
|
on("indexed_posts").
|
||||||
before(:insert, :update) do
|
before(:insert, :update) do
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
disabled: true
|
disabled: true
|
||||||
description_en: "Upload your own theme. [This feature is in development, help us!](https://sutty.nl/en/#contact)"
|
description_en: "Upload your own theme. [This feature is in development, help us!](https://sutty.nl/en/#contact)"
|
||||||
description_es: "Subir tu propio diseño. [Esta posibilidad está en desarrollo, ¡ayudanos!](https://sutty.nl/#contacto)"
|
description_es: "Subir tu propio diseño. [Esta posibilidad está en desarrollo, ¡ayudanos!](https://sutty.nl/#contacto)"
|
||||||
|
priority: '0'
|
||||||
- name_en: 'I want you to develop a site for me'
|
- name_en: 'I want you to develop a site for me'
|
||||||
name_es: 'Quiero que desarrollen mi sitio'
|
name_es: 'Quiero que desarrollen mi sitio'
|
||||||
gem: 'sutty-theme-custom'
|
gem: 'sutty-theme-custom'
|
||||||
|
@ -13,6 +14,7 @@
|
||||||
disabled: true
|
disabled: true
|
||||||
description_en: "If you want us to develop your site, you're welcome to [contact us!](https://sutty.nl/en/#contact) :)"
|
description_en: "If you want us to develop your site, you're welcome to [contact us!](https://sutty.nl/en/#contact) :)"
|
||||||
description_es: "Si querés que desarrollemos tu sitio, [escribinos](https://sutty.nl/#contacto) :)"
|
description_es: "Si querés que desarrollemos tu sitio, [escribinos](https://sutty.nl/#contacto) :)"
|
||||||
|
priority: '2'
|
||||||
- name_en: 'Minima'
|
- name_en: 'Minima'
|
||||||
name_es: 'Mínima'
|
name_es: 'Mínima'
|
||||||
gem: 'sutty-minima'
|
gem: 'sutty-minima'
|
||||||
|
@ -20,6 +22,7 @@
|
||||||
description_en: "Sutty Minima is based on [Minima](https://jekyll.github.io/minima/), a blog-focused theme for Jekyll."
|
description_en: "Sutty Minima is based on [Minima](https://jekyll.github.io/minima/), a blog-focused theme for Jekyll."
|
||||||
description_es: 'Sutty Mínima es una plantilla para blogs basada en [Mínima](https://jekyll.github.io/minima/).'
|
description_es: 'Sutty Mínima es una plantilla para blogs basada en [Mínima](https://jekyll.github.io/minima/).'
|
||||||
license: 'https://0xacab.org/sutty/jekyll/minima/-/blob/master/LICENSE.txt'
|
license: 'https://0xacab.org/sutty/jekyll/minima/-/blob/master/LICENSE.txt'
|
||||||
|
priority: '100'
|
||||||
- name_en: 'Sutty'
|
- name_en: 'Sutty'
|
||||||
name_es: 'Sutty'
|
name_es: 'Sutty'
|
||||||
gem: 'sutty-jekyll-theme'
|
gem: 'sutty-jekyll-theme'
|
||||||
|
@ -29,6 +32,7 @@
|
||||||
license: 'https://0xacab.org/sutty/jekyll/sutty-jekyll-theme/-/blob/master/LICENSE.txt'
|
license: 'https://0xacab.org/sutty/jekyll/sutty-jekyll-theme/-/blob/master/LICENSE.txt'
|
||||||
credits_es: 'Sutty es parte de la economía solidaria :)'
|
credits_es: 'Sutty es parte de la economía solidaria :)'
|
||||||
credits_en: 'Sutty is a solidarity economy project!'
|
credits_en: 'Sutty is a solidarity economy project!'
|
||||||
|
priority: '90'
|
||||||
- name_en: 'Self-managed Book Publisher'
|
- name_en: 'Self-managed Book Publisher'
|
||||||
name_es: 'Editorial Autogestiva'
|
name_es: 'Editorial Autogestiva'
|
||||||
gem: 'editorial-autogestiva-jekyll-theme'
|
gem: 'editorial-autogestiva-jekyll-theme'
|
||||||
|
@ -38,6 +42,7 @@
|
||||||
license: 'https://0xacab.org/sutty/jekyll/editorial-autogestiva-jekyll-theme/-/blob/master/LICENSE.txt'
|
license: 'https://0xacab.org/sutty/jekyll/editorial-autogestiva-jekyll-theme/-/blob/master/LICENSE.txt'
|
||||||
credits_es: 'Esta plantilla fue inspirada en el trabajo de las [editoriales autogestivas](https://sutty.nl/plantillas-para-crear-cat%C3%A1logos-de-editoriales-autogestivas/)'
|
credits_es: 'Esta plantilla fue inspirada en el trabajo de las [editoriales autogestivas](https://sutty.nl/plantillas-para-crear-cat%C3%A1logos-de-editoriales-autogestivas/)'
|
||||||
credits_en: 'This theme is inspired by [independent publishing projects](https://sutty.nl/en/new-template-for-publishing-projects/)'
|
credits_en: 'This theme is inspired by [independent publishing projects](https://sutty.nl/en/new-template-for-publishing-projects/)'
|
||||||
|
priority: '50'
|
||||||
- name_en: 'Donations'
|
- name_en: 'Donations'
|
||||||
name_es: 'Donaciones'
|
name_es: 'Donaciones'
|
||||||
gem: 'sutty-donaciones-jekyll-theme'
|
gem: 'sutty-donaciones-jekyll-theme'
|
||||||
|
@ -47,6 +52,7 @@
|
||||||
license: 'https://0xacab.org/sutty/jekyll/sutty-donaciones-jekyll-theme/-/blob/master/LICENSE.txt'
|
license: 'https://0xacab.org/sutty/jekyll/sutty-donaciones-jekyll-theme/-/blob/master/LICENSE.txt'
|
||||||
credits_es: 'Diseñamos esta plantilla para [visibilizar campañas de donaciones](https://sutty.nl/plantilla-para-donaciones/) durante la cuarentena.'
|
credits_es: 'Diseñamos esta plantilla para [visibilizar campañas de donaciones](https://sutty.nl/plantilla-para-donaciones/) durante la cuarentena.'
|
||||||
credits_en: 'We designed this theme to increase [visibility for donation requests](https://sutty.nl/template-for-donations/) during the quarantine.'
|
credits_en: 'We designed this theme to increase [visibility for donation requests](https://sutty.nl/template-for-donations/) during the quarantine.'
|
||||||
|
priority: '80'
|
||||||
- name_en: 'Support campaign'
|
- name_en: 'Support campaign'
|
||||||
name_es: 'Adhesiones'
|
name_es: 'Adhesiones'
|
||||||
gem: 'adhesiones-jekyll-theme'
|
gem: 'adhesiones-jekyll-theme'
|
||||||
|
@ -57,6 +63,7 @@
|
||||||
credits_es: 'Desarrollamos esta plantilla junto con [Librenauta](https://sutty.nl/plantilla-para-campa%C3%B1as-de-adhesiones/)'
|
credits_es: 'Desarrollamos esta plantilla junto con [Librenauta](https://sutty.nl/plantilla-para-campa%C3%B1as-de-adhesiones/)'
|
||||||
credits_en: 'This template was made in collaboration with Librenauta'
|
credits_en: 'This template was made in collaboration with Librenauta'
|
||||||
designer_url: 'https://copiona.com/donaunbit/'
|
designer_url: 'https://copiona.com/donaunbit/'
|
||||||
|
priority: '60'
|
||||||
- name_en: 'Community Radio'
|
- name_en: 'Community Radio'
|
||||||
name_es: 'Radio comunitaria'
|
name_es: 'Radio comunitaria'
|
||||||
gem: 'radios-comunitarias-jekyll-theme'
|
gem: 'radios-comunitarias-jekyll-theme'
|
||||||
|
@ -67,6 +74,7 @@
|
||||||
credits_es: 'Desarrollamos esta plantilla junto con Librenauta en 15 horas :)'
|
credits_es: 'Desarrollamos esta plantilla junto con Librenauta en 15 horas :)'
|
||||||
credits_en: 'This template was made in collaboration with Librenauta in 15 hours!'
|
credits_en: 'This template was made in collaboration with Librenauta in 15 hours!'
|
||||||
designer_url: 'https://copiona.com/donaunbit/'
|
designer_url: 'https://copiona.com/donaunbit/'
|
||||||
|
priority: '70'
|
||||||
- name_en: 'Resource toolkit'
|
- name_en: 'Resource toolkit'
|
||||||
name_es: 'Recursero'
|
name_es: 'Recursero'
|
||||||
gem: 'recursero-jekyll-theme'
|
gem: 'recursero-jekyll-theme'
|
||||||
|
@ -74,10 +82,12 @@
|
||||||
disabled: true
|
disabled: true
|
||||||
description_en: "We're working towards adding more themes for you to use. [Contact us!](https://sutty.nl/en/#contact)"
|
description_en: "We're working towards adding more themes for you to use. [Contact us!](https://sutty.nl/en/#contact)"
|
||||||
description_es: "Estamos trabajando para que puedas tener más diseños. [¡Escribinos!](https://sutty.nl/#contacto)"
|
description_es: "Estamos trabajando para que puedas tener más diseños. [¡Escribinos!](https://sutty.nl/#contacto)"
|
||||||
- name_en: 'Other themes'
|
priority: '3'
|
||||||
name_es: 'Mi propio diseño'
|
- name_en: 'More themes'
|
||||||
|
name_es: 'Más plantillas'
|
||||||
gem: 'sutty-theme-own'
|
gem: 'sutty-theme-own'
|
||||||
url: 'https://jekyllthemes.org'
|
url: 'https://jekyllthemes.org'
|
||||||
disabled: true
|
disabled: true
|
||||||
description_en: "We're working towards adding more themes for you to use. [Contact us!](https://sutty.nl/en/#contact)"
|
description_en: "We're working towards adding more themes for you to use. [Contact us!](https://sutty.nl/en/#contact)"
|
||||||
description_es: "Estamos trabajando para que puedas tener más diseños. [¡Escribinos!](https://sutty.nl/#contacto)"
|
description_es: "Estamos trabajando para que puedas tener más diseños. [¡Escribinos!](https://sutty.nl/#contacto)"
|
||||||
|
priority: '1'
|
||||||
|
|
Loading…
Reference in a new issue