- 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
26 lines
694 B
Plaintext
26 lines
694 B
Plaintext
: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"
|