server config

This commit is contained in:
polo
2019-05-30 17:09:24 +00:00
12 changed files with 76 additions and 15 deletions

View File

@@ -11,3 +11,11 @@
// about supported directives.
//
//= require_tree .
$(document).ready(function(){
var msnry = new Masonry( '#infos', {
columnWidth: 180,
itemSelector: '.card'
});
});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -8,7 +8,35 @@ a {
color:black;
}
a:hover{
background-color: black;
color: white;
p:hover{
background-color: green;
}
.card:hover{
background-color: green;
}
.card{
color: black;
width: 200px;
float: left;
border: 2px solid green;
margin: 10px;
padding: 25px;
font-size: 22px;
text-align: center;
box-shadow: 8px 8px 3px #1a54027a;
}
.date{
font-size: 14px;
color: gray;
padding-top: 15px
}
#nav{
display: inline-block;
width: 100%;
text-align: center;
padding: 10px;
font-size: 19px
}

View File

@@ -1,4 +1,4 @@
class Informativo < ApplicationRecord
self.table_name = "informativo"
paginates_per 10
# paginates_per 10
end

View File

@@ -7,6 +7,8 @@
= csp_meta_tag
= stylesheet_link_tag "https://fonts.googleapis.com/css?family=Inconsolata&display=swap"
= stylesheet_link_tag 'application', media: 'all'
= javascript_include_tag 'application'
%body
%h1= "Ambiente Já!"

View File

@@ -1,5 +1,10 @@
%h3= "#{@informativos.count} informativos"
- @informativos.each do |i|
%p= link_to "#{i.data_inc} > #{i.titulo}", "/informativo/#{i.id}"
#infos
- @informativos.each do |i|
.card
%span.link= link_to i.titulo, CGI.unescapeHTML("/informativo/#{i.id}")
.date= "#{i.data_inc}"
#nav
= will_paginate @informativos

View File

@@ -2,8 +2,6 @@ Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Code is not reloaded between requests.
config.cache_classes = true
config.serve_static_assets = true
config.public_file_server.enabled = true
# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both threaded web servers

9
masonry.pkgd.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File