chore: reorganize para current/, rails 8.1, testes e readme
- move app para current/ (estrutura capistrano) - rails 7.2 → 8.1, ruby 3.2, sqlite3 2.x - adiciona primary_key Idinformativo no model - schema.rb completo com todas as tabelas - testes minitest: models (Tag, Informativo, Tema) e controllers - readme atualizado em pt-br com stack e instruções de desenvolvimento - gitignore exclui dump.sql, *.duckdb e sqlite3
This commit is contained in:
16
current/app/views/page/home.haml
Normal file
16
current/app/views/page/home.haml
Normal file
@@ -0,0 +1,16 @@
|
||||
- content_for :tags do
|
||||
#tags
|
||||
- Tag.top.each do |t|
|
||||
%span= link_to "#{t.nome} (#{t.count})", "/tag/#{t.param}", class: "tags", target: "blank"
|
||||
|
||||
#informativos
|
||||
- @informativos.each do |i|
|
||||
.card
|
||||
%p= link_to i.titulo.html_safe, CGI.unescapeHTML("/informativo/#{i.id}"), class: "link"
|
||||
- i.tags.each do |t|
|
||||
%span= link_to t.nome, "/tag/#{t.param}", class: "tags", target: "blank"
|
||||
- from = i.operador_inc ? " | #{i.operador_inc.downcase.capitalize}" : ""
|
||||
.date= "#{i.Datainc} #{from}"
|
||||
|
||||
#nav
|
||||
= will_paginate @informativos
|
||||
25
current/app/views/page/informativo.haml
Normal file
25
current/app/views/page/informativo.haml
Normal file
@@ -0,0 +1,25 @@
|
||||
:javascript
|
||||
$(document).ready(function(){
|
||||
$(".texto a").each(function(a){
|
||||
$(this).attr("target", "_blank");
|
||||
})
|
||||
});
|
||||
|
||||
#todo
|
||||
%h2.link= @informativo.titulo.html_safe
|
||||
#br{style: "padding-top: 4px"}
|
||||
|
||||
- @informativo.tags.each do |t|
|
||||
%span= link_to t.nome, "/tag/#{t.param}", class: "tags", target: "blank"
|
||||
|
||||
- from = @informativo.operador_inc ? " | #{@informativo.operador_inc.downcase.capitalize}" : ""
|
||||
.date= "#{@informativo.Datainc} #{from}"
|
||||
|
||||
.texto!= @informativo.Descricao #to_html
|
||||
-# %hr
|
||||
-# != ap @informativo
|
||||
|
||||
%hr
|
||||
#tags
|
||||
- Tag.top.each do |t|
|
||||
%span= link_to "#{t.nome} (#{t.count})", "/tag/#{t.param}", class: "tags", target: "blank"
|
||||
14
current/app/views/page/list.haml
Normal file
14
current/app/views/page/list.haml
Normal file
@@ -0,0 +1,14 @@
|
||||
%h2.link= "[ #{@title} ]"
|
||||
-# .date= "#{@informativos.count} informativos"
|
||||
#br{style: "padding: 5px 0px 5px"}
|
||||
|
||||
- @informativos.each do |i|
|
||||
.card
|
||||
%p= link_to i.titulo.html_safe, CGI.unescapeHTML("/informativo/#{i.id}"), class: "link"
|
||||
- i.tags.each do |t|
|
||||
%span= link_to t.nome, "/tag/#{t.param}", class: "tags", target: "blank"
|
||||
- from = i.operador_inc ? " | #{i.operador_inc.downcase.capitalize}" : ""
|
||||
.date= "#{i.Datainc} #{from}"
|
||||
|
||||
#nav
|
||||
= will_paginate @informativos
|
||||
Reference in New Issue
Block a user