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:
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"
|
||||
Reference in New Issue
Block a user