├── lib
├── assets
│ └── .keep
└── tasks
│ └── .keep
├── public
├── favicon.ico
├── apple-touch-icon.png
├── apple-touch-icon-precomposed.png
├── robots.txt
├── 500.html
├── 422.html
└── 404.html
├── test
├── helpers
│ └── .keep
├── mailers
│ └── .keep
├── models
│ └── .keep
├── controllers
│ ├── .keep
│ └── pages_controller_test.rb
├── fixtures
│ ├── .keep
│ └── files
│ │ └── .keep
├── integration
│ └── .keep
└── test_helper.rb
├── app
├── assets
│ ├── images
│ │ ├── .keep
│ │ ├── fondo.png
│ │ ├── arrow-down.png
│ │ ├── logo-blanco.png
│ │ └── mapa-negro.svg
│ ├── javascripts
│ │ ├── channels
│ │ │ └── .keep
│ │ ├── pages.coffee
│ │ ├── cable.js
│ │ ├── components_interaction.js
│ │ └── application.js
│ ├── stylesheets
│ │ ├── views
│ │ │ ├── _global.scss
│ │ │ ├── _demand.scss
│ │ │ └── _information-granted.scss
│ │ ├── elements
│ │ │ ├── _table.scss
│ │ │ ├── _utilities.scss
│ │ │ ├── _images.scss
│ │ │ ├── _base.scss
│ │ │ ├── _buttons.scss
│ │ │ ├── _typography.scss
│ │ │ ├── _variables.scss
│ │ │ └── _form.scss
│ │ ├── components
│ │ │ ├── _buttons.scss
│ │ │ ├── _lists.scss
│ │ │ ├── _header.scss
│ │ │ ├── _tables.scss
│ │ │ ├── _progressbar.scss
│ │ │ ├── _video.scss
│ │ │ ├── _feed.scss
│ │ │ ├── _dropdown.scss
│ │ │ ├── _forms.scss
│ │ │ ├── _footer.scss
│ │ │ ├── _grid.scss
│ │ │ ├── _navigation.scss
│ │ │ └── _banner.scss
│ │ ├── pages.scss
│ │ ├── functions
│ │ │ └── _grid.scss
│ │ └── application.css.scss
│ └── config
│ │ └── manifest.js
├── models
│ ├── concerns
│ │ └── .keep
│ └── application_record.rb
├── controllers
│ ├── concerns
│ │ └── .keep
│ ├── application_controller.rb
│ └── pages_controller.rb
├── views
│ ├── layouts
│ │ ├── mailer.text.erb
│ │ ├── mailer.html.erb
│ │ └── application.html.haml
│ └── pages
│ │ ├── informationgranted.html.haml
│ │ ├── index.html.haml
│ │ └── demand.html.haml
├── helpers
│ ├── pages_helper.rb
│ ├── greeter_helper.rb
│ └── application_helper.rb
├── jobs
│ └── application_job.rb
├── channels
│ └── application_cable
│ │ ├── channel.rb
│ │ └── connection.rb
└── mailers
│ └── application_mailer.rb
├── vendor
└── assets
│ ├── javascripts
│ └── .keep
│ └── stylesheets
│ ├── .keep
│ └── _normalize.scss
├── bin
├── bundle
├── rake
├── rails
├── spring
├── update
└── setup
├── config
├── spring.rb
├── boot.rb
├── environment.rb
├── cable.yml
├── initializers
│ ├── session_store.rb
│ ├── mime_types.rb
│ ├── application_controller_renderer.rb
│ ├── filter_parameter_logging.rb
│ ├── cookies_serializer.rb
│ ├── backtrace_silencers.rb
│ ├── assets.rb
│ ├── wrap_parameters.rb
│ ├── inflections.rb
│ └── new_framework_defaults.rb
├── routes.rb
├── application.rb
├── database.yml
├── locales
│ └── en.yml
├── secrets.yml
├── environments
│ ├── test.rb
│ ├── development.rb
│ └── production.rb
└── puma.rb
├── config.ru
├── Rakefile
├── db
└── seeds.rb
├── .gitignore
├── LICENSE.md
├── Gemfile
├── README.md
├── CONTRIBUTING.md
└── Gemfile.lock
/lib/assets/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/lib/tasks/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/helpers/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/mailers/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/models/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/assets/images/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/controllers/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/fixtures/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/integration/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/models/concerns/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/public/apple-touch-icon.png:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/test/fixtures/files/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/controllers/concerns/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/assets/javascripts/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/vendor/assets/stylesheets/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/assets/javascripts/channels/.keep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/views/_global.scss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/public/apple-touch-icon-precomposed.png:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/views/layouts/mailer.text.erb:
--------------------------------------------------------------------------------
1 | <%= yield %>
2 |
--------------------------------------------------------------------------------
/app/helpers/pages_helper.rb:
--------------------------------------------------------------------------------
1 | module PagesHelper
2 | end
3 |
--------------------------------------------------------------------------------
/app/helpers/greeter_helper.rb:
--------------------------------------------------------------------------------
1 | module GreeterHelper
2 | end
3 |
--------------------------------------------------------------------------------
/app/helpers/application_helper.rb:
--------------------------------------------------------------------------------
1 | module ApplicationHelper
2 | end
3 |
--------------------------------------------------------------------------------
/app/jobs/application_job.rb:
--------------------------------------------------------------------------------
1 | class ApplicationJob < ActiveJob::Base
2 | end
3 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/elements/_table.scss:
--------------------------------------------------------------------------------
1 | // table
2 | // ---------------------------------------
3 |
4 |
--------------------------------------------------------------------------------
/app/models/application_record.rb:
--------------------------------------------------------------------------------
1 | class ApplicationRecord < ActiveRecord::Base
2 | self.abstract_class = true
3 | end
4 |
--------------------------------------------------------------------------------
/app/assets/images/fondo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeandoMexico/tu-plataforma-abierta/HEAD/app/assets/images/fondo.png
--------------------------------------------------------------------------------
/app/assets/images/arrow-down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeandoMexico/tu-plataforma-abierta/HEAD/app/assets/images/arrow-down.png
--------------------------------------------------------------------------------
/app/assets/images/logo-blanco.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/CodeandoMexico/tu-plataforma-abierta/HEAD/app/assets/images/logo-blanco.png
--------------------------------------------------------------------------------
/app/channels/application_cable/channel.rb:
--------------------------------------------------------------------------------
1 | module ApplicationCable
2 | class Channel < ActionCable::Channel::Base
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/app/assets/config/manifest.js:
--------------------------------------------------------------------------------
1 | //= link_tree ../images
2 | //= link_directory ../javascripts .js
3 | //= link_directory ../stylesheets .css
4 |
--------------------------------------------------------------------------------
/app/channels/application_cable/connection.rb:
--------------------------------------------------------------------------------
1 | module ApplicationCable
2 | class Connection < ActionCable::Connection::Base
3 | end
4 | end
5 |
--------------------------------------------------------------------------------
/app/controllers/application_controller.rb:
--------------------------------------------------------------------------------
1 | class ApplicationController < ActionController::Base
2 | protect_from_forgery with: :exception
3 | end
4 |
--------------------------------------------------------------------------------
/app/mailers/application_mailer.rb:
--------------------------------------------------------------------------------
1 | class ApplicationMailer < ActionMailer::Base
2 | default from: 'from@example.com'
3 | layout 'mailer'
4 | end
5 |
--------------------------------------------------------------------------------
/bin/bundle:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3 | load Gem.bin_path('bundler', 'bundle')
4 |
--------------------------------------------------------------------------------
/config/spring.rb:
--------------------------------------------------------------------------------
1 | %w(
2 | .ruby-version
3 | .rbenv-vars
4 | tmp/restart.txt
5 | tmp/caching-dev.txt
6 | ).each { |path| Spring.watch(path) }
7 |
--------------------------------------------------------------------------------
/config/boot.rb:
--------------------------------------------------------------------------------
1 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
2 |
3 | require 'bundler/setup' # Set up gems listed in the Gemfile.
4 |
--------------------------------------------------------------------------------
/config.ru:
--------------------------------------------------------------------------------
1 | # This file is used by Rack-based servers to start the application.
2 |
3 | require_relative 'config/environment'
4 |
5 | run Rails.application
6 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/elements/_utilities.scss:
--------------------------------------------------------------------------------
1 | // utilities
2 | // ---------------------------------------
3 |
4 | .text-centered {
5 | text-align: center;
6 | }
7 |
--------------------------------------------------------------------------------
/config/environment.rb:
--------------------------------------------------------------------------------
1 | # Load the Rails application.
2 | require_relative 'application'
3 |
4 | # Initialize the Rails application.
5 | Rails.application.initialize!
6 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/components/_buttons.scss:
--------------------------------------------------------------------------------
1 | // buttons components
2 | // ---------------------------------------
3 |
4 | .big-button {
5 | padding: 1.4rem 3rem;
6 | }
7 |
--------------------------------------------------------------------------------
/config/cable.yml:
--------------------------------------------------------------------------------
1 | development:
2 | adapter: async
3 |
4 | test:
5 | adapter: async
6 |
7 | production:
8 | adapter: redis
9 | url: redis://localhost:6379/1
10 |
--------------------------------------------------------------------------------
/config/initializers/session_store.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | Rails.application.config.session_store :cookie_store, key: '_pnt_session'
4 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/elements/_images.scss:
--------------------------------------------------------------------------------
1 | // images
2 | // ---------------------------------------
3 |
4 |
5 | img,
6 | picture {
7 | margin: 0;
8 | max-width: 100%;
9 | }
10 |
--------------------------------------------------------------------------------
/config/initializers/mime_types.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Add new mime types for use in respond_to blocks:
4 | # Mime::Type.register "text/richtext", :rtf
5 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/pages.scss:
--------------------------------------------------------------------------------
1 | // Place all the styles related to the pages controller here.
2 | // They will automatically be included in application.css.
3 | // You can use Sass (SCSS) here: http://sass-lang.com/
4 |
--------------------------------------------------------------------------------
/config/initializers/application_controller_renderer.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # ApplicationController.renderer.defaults.merge!(
4 | # http_host: 'example.org',
5 | # https: false
6 | # )
7 |
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
2 | #
3 | # To ban all spiders from the entire site uncomment the next two lines:
4 | # User-agent: *
5 | # Disallow: /
6 |
--------------------------------------------------------------------------------
/app/assets/javascripts/pages.coffee:
--------------------------------------------------------------------------------
1 | # Place all the behaviors and hooks related to the matching controller here.
2 | # All this logic will automatically be available in application.js.
3 | # You can use CoffeeScript in this file: http://coffeescript.org/
4 |
--------------------------------------------------------------------------------
/config/initializers/filter_parameter_logging.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Configure sensitive parameters which will be filtered from the log file.
4 | Rails.application.config.filter_parameters += [:password]
5 |
--------------------------------------------------------------------------------
/Rakefile:
--------------------------------------------------------------------------------
1 | # Add your own tasks in files placed in lib/tasks ending in .rake,
2 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3 |
4 | require_relative 'config/application'
5 |
6 | Rails.application.load_tasks
7 |
--------------------------------------------------------------------------------
/test/controllers/pages_controller_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 |
3 | class PagesControllerTest < ActionDispatch::IntegrationTest
4 | test "should get index" do
5 | get pages_index_url
6 | assert_response :success
7 | end
8 |
9 | end
10 |
--------------------------------------------------------------------------------
/bin/rake:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | begin
3 | load File.expand_path('../spring', __FILE__)
4 | rescue LoadError => e
5 | raise unless e.message.include?('spring')
6 | end
7 | require_relative '../config/boot'
8 | require 'rake'
9 | Rake.application.run
10 |
--------------------------------------------------------------------------------
/config/routes.rb:
--------------------------------------------------------------------------------
1 | Rails.application.routes.draw do
2 | get '/sujetos' => 'pages#informationgranted'
3 | get '/solicitud' => 'pages#demand'
4 | root 'pages#index'
5 | # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
6 | end
7 |
--------------------------------------------------------------------------------
/app/controllers/pages_controller.rb:
--------------------------------------------------------------------------------
1 | class PagesController < ApplicationController
2 | def index
3 | @page_classes = "index"
4 | end
5 | def informationgranted
6 | @page_classes = "informationgranted informationgranted_index"
7 | end
8 | def demand
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/config/initializers/cookies_serializer.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Specify a serializer for the signed and encrypted cookie jars.
4 | # Valid options are :json, :marshal, and :hybrid.
5 | Rails.application.config.action_dispatch.cookies_serializer = :json
6 |
--------------------------------------------------------------------------------
/bin/rails:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | begin
3 | load File.expand_path('../spring', __FILE__)
4 | rescue LoadError => e
5 | raise unless e.message.include?('spring')
6 | end
7 | APP_PATH = File.expand_path('../config/application', __dir__)
8 | require_relative '../config/boot'
9 | require 'rails/commands'
10 |
--------------------------------------------------------------------------------
/app/views/layouts/mailer.html.erb:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
8 |
9 |
10 |
11 | <%= yield %>
12 |
13 |
14 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/components/_lists.scss:
--------------------------------------------------------------------------------
1 | ul,
2 | ol {
3 | list-style-type: none;
4 | margin: 0;
5 | padding: 0;
6 | }
7 |
8 | dl {
9 | margin-bottom: $small-spacing;
10 |
11 | dt {
12 | font-weight: 600;
13 | margin-top: $small-spacing;
14 | }
15 |
16 | dd {
17 | margin: 0;
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/test/test_helper.rb:
--------------------------------------------------------------------------------
1 | ENV['RAILS_ENV'] ||= 'test'
2 | require File.expand_path('../../config/environment', __FILE__)
3 | require 'rails/test_help'
4 |
5 | class ActiveSupport::TestCase
6 | # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
7 | fixtures :all
8 |
9 | # Add more helper methods to be used by all tests here...
10 | end
11 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/functions/_grid.scss:
--------------------------------------------------------------------------------
1 | // functions
2 | // ---------------------------------------
3 |
4 |
5 | @function columnSizer($column) {
6 | @return ($column-size * $column) + ($gutter-size * ($column - 1));
7 | }
8 |
9 | @function columnCentered($column) {
10 | $size-column: columnSizer($column);
11 |
12 | @return (100% - $size-column) / 2;
13 | }
14 |
--------------------------------------------------------------------------------
/db/seeds.rb:
--------------------------------------------------------------------------------
1 | # This file should contain all the record creation needed to seed the database with its default values.
2 | # The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
3 | #
4 | # Examples:
5 | #
6 | # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
7 | # Character.create(name: 'Luke', movie: movies.first)
8 |
--------------------------------------------------------------------------------
/app/assets/javascripts/cable.js:
--------------------------------------------------------------------------------
1 | // Action Cable provides the framework to deal with WebSockets in Rails.
2 | // You can generate new channels where WebSocket features live using the rails generate channel command.
3 | //
4 | //= require action_cable
5 | //= require_self
6 | //= require_tree ./channels
7 |
8 | (function() {
9 | this.App || (this.App = {});
10 |
11 | App.cable = ActionCable.createConsumer();
12 |
13 | }).call(this);
14 |
--------------------------------------------------------------------------------
/config/initializers/backtrace_silencers.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4 | # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5 |
6 | # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7 | # Rails.backtrace_cleaner.remove_silencers!
8 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/components/_header.scss:
--------------------------------------------------------------------------------
1 | header {
2 | padding: 20px 0px 20px 0;
3 | color: $white;
4 | overflow: hidden;
5 | box-sizing: border-box;
6 | width: 100%;
7 | background-color: $blue;
8 | }
9 | .index header{
10 | position: absolute;
11 | background-color: transparent;
12 | }
13 |
14 | .principal-header {
15 | padding: 2rem 0;
16 | text-align: center;
17 |
18 | h1 { margin-bottom: 0; }
19 |
20 | h5 {
21 | font-size: 18px;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/components/_tables.scss:
--------------------------------------------------------------------------------
1 | table {
2 | border-collapse: collapse;
3 | margin: $small-spacing 0;
4 | table-layout: fixed;
5 | width: 100%;
6 | }
7 |
8 | th {
9 | border-bottom: 1px solid shade($base-border-color, 25%);
10 | font-weight: 600;
11 | padding: $small-spacing 0;
12 | text-align: left;
13 | }
14 |
15 | td {
16 | border-bottom: $base-border;
17 | padding: $small-spacing 0;
18 | }
19 |
20 | tr,
21 | td,
22 | th {
23 | vertical-align: middle;
24 | }
25 |
--------------------------------------------------------------------------------
/config/initializers/assets.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Version of your assets, change this if you want to expire all your assets.
4 | Rails.application.config.assets.version = '1.0'
5 |
6 | # Add additional assets to the asset load path
7 | # Rails.application.config.assets.paths << Emoji.images_path
8 |
9 | # Precompile additional assets.
10 | # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11 | # Rails.application.config.assets.precompile += %w( search.js )
12 |
--------------------------------------------------------------------------------
/bin/spring:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 |
3 | # This file loads spring without using Bundler, in order to be fast.
4 | # It gets overwritten when you run the `spring binstub` command.
5 |
6 | unless defined?(Spring)
7 | require 'rubygems'
8 | require 'bundler'
9 |
10 | if (match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m))
11 | Gem.paths = { 'GEM_PATH' => [Bundler.bundle_path.to_s, *Gem.path].uniq.join(Gem.path_separator) }
12 | gem 'spring', match[1]
13 | require 'spring/binstub'
14 | end
15 | end
16 |
--------------------------------------------------------------------------------
/config/application.rb:
--------------------------------------------------------------------------------
1 | require_relative 'boot'
2 |
3 | require 'rails/all'
4 |
5 | # Require the gems listed in Gemfile, including any gems
6 | # you've limited to :test, :development, or :production.
7 | Bundler.require(*Rails.groups)
8 |
9 | module Pnt
10 | class Application < Rails::Application
11 | # Settings in config/environments/* take precedence over those specified here.
12 | # Application configuration should go into files in config/initializers
13 | # -- all .rb files in that directory are automatically loaded.
14 | end
15 | end
16 |
--------------------------------------------------------------------------------
/config/initializers/wrap_parameters.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # This file contains settings for ActionController::ParamsWrapper which
4 | # is enabled by default.
5 |
6 | # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7 | ActiveSupport.on_load(:action_controller) do
8 | wrap_parameters format: [:json]
9 | end
10 |
11 | # To enable root element in JSON for ActiveRecord objects.
12 | # ActiveSupport.on_load(:active_record) do
13 | # self.include_root_in_json = true
14 | # end
15 |
--------------------------------------------------------------------------------
/app/assets/javascripts/components_interaction.js:
--------------------------------------------------------------------------------
1 | (function() {
2 | 'use strict';
3 |
4 | $(document).on('ready', function() {
5 | // Principal navigation menu
6 | $('#principal-menu .toggle').click(function() {
7 | $('#principal-menu nav').slideToggle();
8 | });
9 |
10 | // Get file and put the selected file name in button
11 | $('.inputfile > label').click(function() {
12 | $('.inputfile > input').trigger('click');
13 | });
14 | $('.inputfile > input').change(function() {
15 | $('.inputfile > label').text(this.files[0].name);
16 | });
17 | });
18 | })();
19 |
--------------------------------------------------------------------------------
/config/database.yml:
--------------------------------------------------------------------------------
1 | # SQLite version 3.x
2 | # gem install sqlite3
3 | #
4 | # Ensure the SQLite 3 gem is defined in your Gemfile
5 | # gem 'sqlite3'
6 | #
7 | default: &default
8 | adapter: sqlite3
9 | pool: 5
10 | timeout: 5000
11 |
12 | development:
13 | <<: *default
14 | database: db/development.sqlite3
15 |
16 | # Warning: The database defined as "test" will be erased and
17 | # re-generated from your development database when you run "rake".
18 | # Do not set this db to the same as development or production.
19 | test:
20 | <<: *default
21 | database: db/test.sqlite3
22 |
23 | production:
24 | <<: *default
25 | database: db/production.sqlite3
26 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2 | #
3 | # If you find yourself ignoring temporary files generated by your text editor
4 | # or operating system, you probably want to add a global ignore instead:
5 | # git config --global core.excludesfile '~/.gitignore_global'
6 |
7 | # Ignore bundler config.
8 | /.bundle
9 |
10 | # Ignore the default SQLite database.
11 | /db/*.sqlite3
12 | /db/*.sqlite3-journal
13 |
14 | # Ignore all logfiles and tempfiles.
15 | /log
16 | /tmp
17 | !/log/.keep
18 | !/tmp/.keep
19 |
20 | # Ignore Byebug command history file.
21 | .byebug_history
22 |
23 | # Ignore Desktop Service Store of mac
24 | .DS_Store
25 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/elements/_base.scss:
--------------------------------------------------------------------------------
1 | // base
2 | // ---------------------------------------
3 |
4 | * {
5 | margin: 0;
6 | padding: 0;
7 | box-sizing: border-box;
8 | }
9 |
10 | @import url(https://fonts.googleapis.com/css?family=Roboto:400,300,100,500,700,900);
11 |
12 | body {
13 | color: $base-font-color;
14 | font-family: $base-font-family;
15 | font-size: $base-font-size;
16 | line-height: $base-line-height;
17 | }
18 |
19 | article,
20 | aside,
21 | details,
22 | figcaption,
23 | figure,
24 | footer,
25 | header,
26 | hgroup,
27 | main,
28 | menu,
29 | nav,
30 | section,
31 | summary,
32 | div,
33 | form {
34 | display: block;
35 | overflow: hidden;
36 | width: 100%;
37 | }
38 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/components/_progressbar.scss:
--------------------------------------------------------------------------------
1 | #progressbar {
2 | border-radius: 13px; /* (height of inner div) / 2 + padding */
3 | padding: 3px;
4 | text-align: center;
5 | margin: 30px auto;
6 | clear: both;
7 |
8 | svg { width: 82.2%; }
9 | }
10 |
11 | .chart rect:first-of-type {
12 | color: $chart-color;
13 | stroke: $chart-color;
14 | fill: $chart-color;
15 | }
16 |
17 | text:first-of-type {
18 | fill: $chart-color;
19 | font-family: 'Roboto';
20 | }
21 |
22 | .chart rect:nth-of-type(2) {
23 | color: $blue;
24 | stroke: transparent;
25 | fill: $blue;
26 | }
27 |
28 | text:nth-of-type(2) {
29 | fill: $white;
30 | font-family: 'Roboto';
31 | }
32 |
--------------------------------------------------------------------------------
/config/initializers/inflections.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Add new inflection rules using the following format. Inflections
4 | # are locale specific, and you may define rules for as many different
5 | # locales as you wish. All of these examples are active by default:
6 | # ActiveSupport::Inflector.inflections(:en) do |inflect|
7 | # inflect.plural /^(ox)$/i, '\1en'
8 | # inflect.singular /^(ox)en/i, '\1'
9 | # inflect.irregular 'person', 'people'
10 | # inflect.uncountable %w( fish sheep )
11 | # end
12 |
13 | # These inflection rules are supported but not enabled by default:
14 | # ActiveSupport::Inflector.inflections(:en) do |inflect|
15 | # inflect.acronym 'RESTful'
16 | # end
17 |
--------------------------------------------------------------------------------
/config/locales/en.yml:
--------------------------------------------------------------------------------
1 | # Files in the config/locales directory are used for internationalization
2 | # and are automatically loaded by Rails. If you want to use locales other
3 | # than English, add the necessary files in this directory.
4 | #
5 | # To use the locales, use `I18n.t`:
6 | #
7 | # I18n.t 'hello'
8 | #
9 | # In views, this is aliased to just `t`:
10 | #
11 | # <%= t('hello') %>
12 | #
13 | # To use a different locale, set it with `I18n.locale`:
14 | #
15 | # I18n.locale = :es
16 | #
17 | # This would use the information in config/locales/es.yml.
18 | #
19 | # To learn more, please read the Rails Internationalization guide
20 | # available at http://guides.rubyonrails.org/i18n.html.
21 |
22 | en:
23 | hello: "Hello world"
24 |
--------------------------------------------------------------------------------
/bin/update:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require 'pathname'
3 | require 'fileutils'
4 | include FileUtils
5 |
6 | # path to your application root.
7 | APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
8 |
9 | def system!(*args)
10 | system(*args) || abort("\n== Command #{args} failed ==")
11 | end
12 |
13 | chdir APP_ROOT do
14 | # This script is a way to update your development environment automatically.
15 | # Add necessary update steps to this file.
16 |
17 | puts '== Installing dependencies =='
18 | system! 'gem install bundler --conservative'
19 | system('bundle check') || system!('bundle install')
20 |
21 | puts "\n== Updating database =="
22 | system! 'bin/rails db:migrate'
23 |
24 | puts "\n== Removing old logs and tempfiles =="
25 | system! 'bin/rails log:clear tmp:clear'
26 |
27 | puts "\n== Restarting application server =="
28 | system! 'bin/rails restart'
29 | end
30 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/views/_demand.scss:
--------------------------------------------------------------------------------
1 | // demand
2 | // ---------------------------------------
3 |
4 | .demand {
5 | form {
6 | .question {
7 | margin-bottom: 1.7rem;
8 |
9 | > label {
10 | margin-bottom: 1rem;
11 | font-weight: bold;
12 | }
13 | }
14 | }
15 |
16 | .input-inline {
17 | width: 100%;
18 | }
19 |
20 | @media (min-width: 1200px) {
21 | .input-inline {
22 | input {
23 | width: 55%;
24 | }
25 | }
26 |
27 | select { width: 30%; }
28 | }
29 |
30 | @media (min-width: 900px) and (max-width: 1199px) {
31 | .input-inline {
32 | input {
33 | width: 70%;
34 | }
35 | }
36 |
37 | select { width: 50%; }
38 | }
39 |
40 | @media (min-width: 400px) and (max-width: 899px) {
41 | select { width: 60%; }
42 | }
43 |
44 | @media (max-width: 399px) {
45 | select { width: 100%; }
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/components/_video.scss:
--------------------------------------------------------------------------------
1 | section.section-video{
2 | padding:60px 0;
3 | text-align: center;
4 | border-bottom: 1px solid $border-color;
5 |
6 | h4{
7 | margin-top: 40px;
8 | }
9 |
10 | ul.tutorials{
11 | text-align: center;
12 | margin: 20px 0;
13 | li{
14 | display: inline-block;
15 | margin-right: 15px;
16 | border-right: 1px solid $blue;
17 | padding-right: 15px;
18 |
19 | &:last-child{
20 | border-right: none;
21 | padding-right: 0;
22 | margin-right: 0;
23 | }
24 | }
25 | }
26 |
27 | .video{
28 | max-width: 600px;
29 | margin: 40px auto;
30 | .video-wrapper {
31 | height: 0;
32 | overflow: hidden;
33 | padding-bottom: 56.25%; // For ratio 16:9. 75% if ratio is 4:3
34 | position: relative;
35 |
36 | embed,
37 | object,
38 | iframe {
39 | @include position(absolute, 0 null null 0);
40 | @include size(100%);
41 | }
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/config/secrets.yml:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Your secret key is used for verifying the integrity of signed cookies.
4 | # If you change this key, all old signed cookies will become invalid!
5 |
6 | # Make sure the secret is at least 30 characters and all random,
7 | # no regular words or you'll be exposed to dictionary attacks.
8 | # You can use `rails secret` to generate a secure secret key.
9 |
10 | # Make sure the secrets in this file are kept private
11 | # if you're sharing your code publicly.
12 |
13 | development:
14 | secret_key_base: a9ebbd041bd475ed816258a2d833313ea5f19fbab8738aaccf80beaf6a7bb76a887e5047fdeee1fb0018744ac55115d0910609335df6d9f4a829a47a7fe837cb
15 |
16 | test:
17 | secret_key_base: 00454ffdb0fa16ff934ece1d4d6213423797157927b010871f69577a12f65542dc02222990830967e2845258c512362a2a481c476fcc5440b64873a365f8a681
18 |
19 | # Do not keep production secrets in the repository,
20 | # instead read values from the environment.
21 | production:
22 | secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
23 |
--------------------------------------------------------------------------------
/bin/setup:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env ruby
2 | require 'pathname'
3 | require 'fileutils'
4 | include FileUtils
5 |
6 | # path to your application root.
7 | APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
8 |
9 | def system!(*args)
10 | system(*args) || abort("\n== Command #{args} failed ==")
11 | end
12 |
13 | chdir APP_ROOT do
14 | # This script is a starting point to setup your application.
15 | # Add necessary setup steps to this file.
16 |
17 | puts '== Installing dependencies =='
18 | system! 'gem install bundler --conservative'
19 | system('bundle check') || system!('bundle install')
20 |
21 | # puts "\n== Copying sample files =="
22 | # unless File.exist?('config/database.yml')
23 | # cp 'config/database.yml.sample', 'config/database.yml'
24 | # end
25 |
26 | puts "\n== Preparing database =="
27 | system! 'bin/rails db:setup'
28 |
29 | puts "\n== Removing old logs and tempfiles =="
30 | system! 'bin/rails log:clear tmp:clear'
31 |
32 | puts "\n== Restarting application server =="
33 | system! 'bin/rails restart'
34 | end
35 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/elements/_buttons.scss:
--------------------------------------------------------------------------------
1 | // buttons elements
2 | // ---------------------------------------
3 |
4 | #{$all-buttons} {
5 | appearance: none;
6 | background-color: $action-color;
7 | border: 0;
8 | border-radius: 3rem;
9 | color: $white;
10 | cursor: pointer;
11 | display: inline-block;
12 | font-family: $base-font-family;
13 | font-size: $base-font-size;
14 | -webkit-font-smoothing: antialiased;
15 | font-weight: 600;
16 | line-height: 1;
17 | padding: $small-spacing $base-spacing;
18 | text-decoration: none;
19 | transition: background-color $base-duration $base-timing;
20 | user-select: none;
21 | vertical-align: middle;
22 | white-space: nowrap;
23 | @include appearance(none);
24 |
25 | &:hover,
26 | &:focus {
27 | background-color: shade($action-color, 20%);
28 | color: $white;
29 | }
30 |
31 | &:disabled {
32 | cursor: not-allowed;
33 | opacity: 0.5;
34 |
35 | &:hover {
36 | background-color: $action-color;
37 | }
38 | }
39 | }
40 | .button {
41 | @extend button;
42 | }
43 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | # The MIT License (MIT)
2 | ## Copyright (c) 2016 Civica Digital
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5 |
6 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7 |
8 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
9 |
--------------------------------------------------------------------------------
/config/initializers/new_framework_defaults.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 | #
3 | # This file contains migration options to ease your Rails 5.0 upgrade.
4 | #
5 | # Read the Rails 5.0 release notes for more info on each option.
6 |
7 | # Enable per-form CSRF tokens. Previous versions had false.
8 | Rails.application.config.action_controller.per_form_csrf_tokens = true
9 |
10 | # Enable origin-checking CSRF mitigation. Previous versions had false.
11 | Rails.application.config.action_controller.forgery_protection_origin_check = true
12 |
13 | # Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
14 | # Previous versions had false.
15 | ActiveSupport.to_time_preserves_timezone = true
16 |
17 | # Require `belongs_to` associations by default. Previous versions had false.
18 | Rails.application.config.active_record.belongs_to_required_by_default = true
19 |
20 | # Do not halt callback chains when a callback returns false. Previous versions had true.
21 | ActiveSupport.halt_callback_chains_on_return_false = false
22 |
23 | # Configure SSL options to enable HSTS with subdomains. Previous versions had false.
24 | Rails.application.config.ssl_options = { hsts: { subdomains: true } }
25 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/components/_feed.scss:
--------------------------------------------------------------------------------
1 | section.section-feed {
2 | padding: 60px 0;
3 | overflow: hidden;
4 | background-color: $lightest-blue;
5 |
6 | h2 {
7 | padding-bottom: 20px;
8 | }
9 |
10 | h4 {
11 | color: $blue;
12 | font-size: 1.46rem;
13 | font-weight: 300;
14 | padding-bottom: 0.35rem;
15 | }
16 | p {
17 | color: $blue-dark;
18 | }
19 | small {
20 | color: $medium-gray;
21 | }
22 | a.text-button {
23 | padding-top: 10px;
24 | float: right;
25 | display: inline-block;
26 | }
27 |
28 | .event{
29 | padding: 20px 140px 10px 20px;
30 | margin-bottom: 20px;
31 | border: 1px solid rgba($blue, .3);
32 | border-radius: 20px;
33 | position: relative;
34 |
35 | .date{
36 | background-color: $blue;
37 | color: $white;
38 | float: right;
39 | width: 120px;
40 | border-radius: 10px;
41 | padding: 10px;
42 | position: absolute;
43 | right: 20px;
44 | top:20px;
45 | text-align: center;
46 | font-weight: 300;
47 | }
48 | }
49 | .new {
50 | padding: 20px;
51 | margin-bottom: 20px;
52 | border: 1px solid rgba($blue, .3);
53 | border-radius: 20px;
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/views/_information-granted.scss:
--------------------------------------------------------------------------------
1 | .infromation-granted{
2 |
3 | .blue { color: $blue; }
4 |
5 | hgroup {
6 | h5 { color: $blue; }
7 | }
8 |
9 | h4 {
10 | text-align: center;
11 | }
12 |
13 | form {
14 | padding: 1rem 0;
15 |
16 | select {
17 | width: 100%;
18 | }
19 | }
20 | hr {
21 | clear: both;
22 | }
23 |
24 | .numbers {
25 | padding-bottom: 40px;
26 |
27 | .number {
28 | margin-bottom: 15px;
29 |
30 | .number-content {
31 | border: 1px solid $light-gray;
32 | border-radius: 8px;
33 | padding: 30px 10px;
34 | text-align: center;
35 | height: 100%;
36 |
37 | h2 {
38 | color: $blue;
39 | font-size: 30px;
40 | line-height: 34px;
41 | }
42 | p{
43 | font-size: 22px;
44 | color: $blue;
45 | font-weight: 300;
46 | margin-bottom: 0;
47 | }
48 | &:hover{
49 | background-color: $blue;
50 | h2, p{
51 | color:#fff;
52 | }
53 | }
54 | }
55 | }
56 | }
57 |
58 | .stats{
59 | overflow: hidden;
60 | padding-bottom: 40px;
61 |
62 | h2 {
63 | margin: 2rem 0;
64 | }
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/application.css.scss:
--------------------------------------------------------------------------------
1 | // --------------------------------------------
2 | // Sass structure
3 | // --------------------------------------------
4 |
5 |
6 | // vendor
7 | @import "../../../vendor/assets/stylesheets/normalize";
8 | @import "font-awesome-sprockets";
9 | @import "font-awesome";
10 |
11 | // bourbon
12 | @import "bourbon";
13 |
14 | // neat
15 | @import "neat";
16 |
17 | // elements
18 | @import "elements/variables";
19 |
20 | // functions
21 | @import "functions/grid";
22 |
23 | // elements
24 | @import "elements/base";
25 | @import "elements/typography";
26 | @import "elements/form";
27 | @import "elements/buttons";
28 | @import "elements/table";
29 | @import "elements/images";
30 | @import "elements/utilities";
31 |
32 | // components
33 | @import "components/grid";
34 | @import "components/buttons";
35 | @import "components/forms";
36 | @import "components/lists";
37 | @import "components/tables";
38 | @import "components/header";
39 | @import "components/navigation";
40 | @import "components/footer";
41 | @import "components/banner";
42 | @import "components/video";
43 | @import "components/feed";
44 | @import "components/progressbar";
45 | @import "components/dropdown";
46 |
47 | // views
48 | @import "views/global";
49 | @import "views/information-granted";
50 | @import "views/demand";
51 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/elements/_typography.scss:
--------------------------------------------------------------------------------
1 | // typhography
2 | // ---------------------------------------
3 |
4 | // Headers
5 |
6 | h1,
7 | h2,
8 | h3,
9 | h4,
10 | h5,
11 | h6 {
12 | color: $header-color;
13 | font-size: 0.875rem;
14 | font-weight: 400;
15 | font-family: $heading-font-family;
16 | font-size: $base-font-size;
17 | }
18 |
19 | h1 { font-size: 2.063rem; }
20 | h2 { font-size: 1.75rem; }
21 | h3 { font-size: 1.375rem; }
22 | h4 { font-size: 1.25rem; }
23 | h5 { font-size: 1rem; }
24 |
25 | .slim-header { font-weight: 300; }
26 | .slim-header-blue {
27 | @extend .slim-header;
28 | color: $blue;
29 | }
30 |
31 |
32 | // Text
33 |
34 | p {
35 | margin: 0 0 $small-spacing;
36 | }
37 |
38 | small { font-size: 0.7rem; }
39 |
40 | address {
41 | font-style: normal;
42 | }
43 |
44 | blockquote {
45 | //
46 | }
47 |
48 | hr {
49 | border-bottom: $base-border;
50 | border-left: 0;
51 | border-right: 0;
52 | border-top: 0;
53 | margin: $base-spacing 0;
54 | }
55 |
56 |
57 | // Lists
58 |
59 | ul {
60 | padding-left: 15px;
61 |
62 | li {
63 | padding: 7px 0;
64 | }
65 | }
66 |
67 |
68 | // Links
69 |
70 | a {
71 | text-decoration: none;
72 | color: $action-color;
73 | @include transition(all $base-duration $base-timing);
74 |
75 | &:active,
76 | &:focus,
77 | &:hover {
78 | text-decoration: underline;
79 | color: shade($action-color, 25%);
80 | }
81 | }
82 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/components/_dropdown.scss:
--------------------------------------------------------------------------------
1 | .dropbtn {
2 | background-color: $white;
3 | color: $blue;
4 | padding: 16px;
5 | font-size: 16px;
6 | border: none;
7 | cursor: pointer;
8 | z-index: 1000;
9 | width: 100%;
10 | min-width: 50%;
11 |
12 | }
13 |
14 | .dropdown {
15 | display: inline-block;
16 | position: inherit;
17 | z-index: 1000;
18 | min-width: 80%;
19 | margin-top: 10px;
20 | border: 3px solid $blue;
21 | }
22 |
23 | .dropdown-content {
24 | display: none;
25 | position: absolute;
26 | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
27 | z-index: 1000;
28 | border: 1px solid $blue;
29 | }
30 |
31 | .dropdown-content a {
32 | color: black;
33 | padding: 12px 16px;
34 | text-decoration: none;
35 | display: block;
36 | z-index: 1000;
37 | background-color: $white;
38 | color: $blue;;
39 | }
40 |
41 | .dropdown-content a:hover {
42 | z-index: 1000;
43 | background-color: $blue;
44 | color: $white;
45 | }
46 |
47 | .dropdown:hover .dropdown-content {
48 | display: block;
49 | background-color: $blue;
50 | color: $white;
51 | z-index: 1000;
52 | }
53 |
54 | .dropdown:hover .dropbtn {
55 | background-color: $blue;
56 | color: $white;
57 | z-index: 1000;
58 | }
59 |
60 | .search{
61 | border: 3px solid $blue !important;
62 | margin-top: 10px;
63 | margin-bottom: 10px;
64 | z-index: 1000;
65 | }
66 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/components/_forms.scss:
--------------------------------------------------------------------------------
1 | // form components
2 | // ---------------------------------------
3 |
4 | .input-icon-left {
5 | position: relative;
6 |
7 | input {
8 | padding-left: 2.8rem;
9 | }
10 |
11 | i {
12 | position: absolute;
13 | left: 1rem;
14 | top: 1.1rem;
15 | color: $blue;
16 | }
17 | }
18 |
19 | .inputfile {
20 | input {
21 | width: 0;
22 | height: 0;
23 | position: absolute;
24 | opacity: 0;
25 | z-index: -1;
26 | }
27 |
28 | label {
29 | @extend button;
30 |
31 | &.big-button {
32 | @extend .big-button;
33 | }
34 | }
35 | }
36 |
37 | .radio {
38 | label {
39 | display: inline-block;
40 | padding-left: 1px;
41 | position: relative;
42 | cursor: pointer;
43 |
44 | &:before {
45 | content: "";
46 | display: inline-block;
47 | width: 21px;
48 | height: 21px;
49 | border: 1px solid $blue;
50 | border-radius: 50%;
51 | }
52 |
53 | > input[type='radio'] {
54 | display: none;
55 |
56 | &:checked + i.radio-icon {
57 | background-color: $blue;
58 | }
59 | }
60 |
61 | > span {
62 | position: relative;
63 | top: -4px;
64 | margin-left: 5px;
65 | }
66 |
67 | > i.radio-icon {
68 | position: absolute;
69 | display: block;
70 | width: 13px;
71 | height: 13px;
72 | top: 4px;
73 | left: 5px;
74 | margin: 0;
75 | background-color: transparent;
76 | border-radius: 50%;
77 | }
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/public/500.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | We're sorry, but something went wrong (500)
5 |
6 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
We're sorry, but something went wrong.
62 |
63 |
If you are the application owner check the logs for more information.
64 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/public/422.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | The change you wanted was rejected (422)
5 |
6 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
The change you wanted was rejected.
62 |
Maybe you tried to change something you didn't have access to.
63 |
64 |
If you are the application owner check the logs for more information.
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/elements/_variables.scss:
--------------------------------------------------------------------------------
1 | // variables
2 | // ---------------------------------------
3 |
4 |
5 | // Colors
6 | $white: #fff;
7 | $dark: #000;
8 | $blue: #8a9cbf;
9 | $blue-dark: #47525d;
10 | $border-color: #ededed;
11 | $lightest-blue: #f1f8ff;
12 | $gray: #a0aec1;
13 | $dark-gray: #333;
14 | $medium-gray: #999;
15 | $light-gray: #ddd;
16 | $pink: #f1227a;
17 | $chart-color: #f1f5f6;
18 | $current-input-border: #6db0f3;
19 | $current-input-bkg: rgba(234, 245, 255, 0.53);
20 |
21 | $base-font-color: $blue-dark;
22 | $action-color: $blue;
23 | $header-color: $blue-dark;
24 | $base-border-color: $gray;
25 | $base-border: 1px solid $base-border-color;
26 | $base-background-color: $white;
27 | $secondary-background-color: tint($base-border-color, 75%);
28 |
29 |
30 | // Sizes
31 | $base-size: 16px;
32 | $base-font-size: $base-size;
33 | $base-line-height: 1.5;
34 | $heading-line-height: 1.2;
35 | $base-border-radius: 6px;
36 | $base-spacing: $base-line-height * 1em;
37 | $small-spacing: $base-spacing / 2;
38 | $base-z-index: 0;
39 |
40 | $grid-columns: 12 !default;
41 | $max-width: 1200px !default;
42 | $border-box-sizing: true !default;
43 | $column-size: 6.195%;
44 | $gutter-size: 2.323%;
45 |
46 |
47 | // Typography
48 | $base-font-family: "Roboto", Helvetica, sans-serif;
49 | $heading-font-family: $base-font-family;
50 |
51 |
52 | // Forms
53 | $form-box-shadow: inset 0 1px 3px rgba(#000, 0.06);
54 | $form-box-shadow-focus: $form-box-shadow, 0 0 5px adjust-color($action-color, $lightness: -5%, $alpha: -0.3);
55 |
56 |
57 | // Animations
58 | $base-duration: 150ms;
59 | $base-timing: ease;
60 |
61 |
62 | //Fondos
63 | .light-blue-bg{
64 | background-color: $blue !important;
65 | }
66 |
67 | .white-text{
68 | color: $white;
69 | }
70 |
71 | .light-blue-text{
72 | color: $blue;
73 | }
74 | .light-blue{
75 | color: $blue;
76 | }
77 |
--------------------------------------------------------------------------------
/public/404.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | The page you were looking for doesn't exist (404)
5 |
6 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
The page you were looking for doesn't exist.
62 |
You may have mistyped the address or the page may have moved.
63 |
64 |
If you are the application owner check the logs for more information.
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/config/environments/test.rb:
--------------------------------------------------------------------------------
1 | Rails.application.configure do
2 | # Settings specified here will take precedence over those in config/application.rb.
3 |
4 | # The test environment is used exclusively to run your application's
5 | # test suite. You never need to work with it otherwise. Remember that
6 | # your test database is "scratch space" for the test suite and is wiped
7 | # and recreated between test runs. Don't rely on the data there!
8 | config.cache_classes = true
9 |
10 | # Do not eager load code on boot. This avoids loading your whole application
11 | # just for the purpose of running a single test. If you are using a tool that
12 | # preloads Rails for running tests, you may have to set it to true.
13 | config.eager_load = false
14 |
15 | # Configure public file server for tests with Cache-Control for performance.
16 | config.public_file_server.enabled = true
17 | config.public_file_server.headers = {
18 | 'Cache-Control' => 'public, max-age=3600'
19 | }
20 |
21 | # Show full error reports and disable caching.
22 | config.consider_all_requests_local = true
23 | config.action_controller.perform_caching = false
24 |
25 | # Raise exceptions instead of rendering exception templates.
26 | config.action_dispatch.show_exceptions = false
27 |
28 | # Disable request forgery protection in test environment.
29 | config.action_controller.allow_forgery_protection = false
30 | config.action_mailer.perform_caching = false
31 |
32 | # Tell Action Mailer not to deliver emails to the real world.
33 | # The :test delivery method accumulates sent emails in the
34 | # ActionMailer::Base.deliveries array.
35 | config.action_mailer.delivery_method = :test
36 |
37 | # Print deprecation notices to the stderr.
38 | config.active_support.deprecation = :stderr
39 |
40 | # Raises error for missing translations
41 | # config.action_view.raise_on_missing_translations = true
42 | end
43 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/components/_footer.scss:
--------------------------------------------------------------------------------
1 | footer{
2 | background-color: $blue-dark;
3 | color: $lightest-blue;
4 |
5 | .bottom{
6 | padding: 3rem 0;
7 | font-size: 14px;
8 | overflow: hidden;
9 |
10 | h4 {
11 | padding-bottom: 1rem;
12 | color: $blue;
13 | font-size: 18px;
14 | font-weight: 400;
15 | }
16 | a {
17 | color: $lightest-blue;
18 | text-decoration: none;
19 | font-weight: 300;
20 | font-size: 14px;
21 | padding: 4px 0;
22 | display: inline-block;
23 | &:hover{
24 | color:$blue;
25 | }
26 | }
27 |
28 | ul {
29 | margin-bottom: 1rem;
30 |
31 | li { padding: 0; }
32 | }
33 |
34 | .social{
35 | a {
36 | margin-right: 5px;
37 | border:1px solid $white;
38 | padding: 0px;
39 | text-align: center;
40 | width: 30px;
41 | height: 30px;
42 | line-height: 30px;
43 | display: inline-block;
44 | border-radius: 30px;
45 | margin-bottom: 15px;
46 | &:hover{
47 | color: $blue;
48 | background-color: $white;
49 | }
50 | }
51 | }
52 | .contact{
53 | a{
54 | i{
55 | color: $blue;
56 | margin-right: 10px;
57 | display: inline-block;
58 | }
59 | }
60 |
61 | }
62 | }
63 | .copyright {
64 | background-color: $blue;
65 | padding: 30px 0;
66 | font-size: 14px;
67 | font-weight: 300;
68 | overflow: hidden;
69 |
70 | ul {
71 | float: right;
72 | li {
73 | float: right;
74 | margin-left: 20px;
75 | font-size: 14px;
76 | a{
77 | color: $lightest-blue;
78 | text-decoration: none;
79 | border-bottom: 1px solid $lightest-blue;
80 | opacity: .8;
81 | &:hover{
82 | opacity:1;
83 | }
84 | }
85 | }
86 | }
87 | }
88 | }
89 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/elements/_form.scss:
--------------------------------------------------------------------------------
1 | // form element
2 | // ---------------------------------------
3 |
4 |
5 | // form
6 | form {
7 | margin: 1rem 0;
8 |
9 | ::-webkit-input-placeholder {
10 | color: $blue;
11 | }
12 | ::-moz-placeholder {
13 | color: $blue;
14 | }
15 | ::-ms-input-placeholder {
16 | color: $blue;
17 | }
18 |
19 | > label { font-weight: bold; }
20 | }
21 |
22 | label {
23 | display: block;
24 | margin-bottom: $small-spacing / 2;
25 | }
26 |
27 | #{$all-text-inputs},
28 | select {
29 | width: 100%;
30 | padding: 1rem;
31 | color: $blue;
32 | font-family: $base-font-family;
33 | font-size: $base-font-size;
34 | margin-bottom: 0.8rem;
35 | border-radius: 6px;
36 | border: 1px solid $blue;
37 | background-color: $base-background-color;
38 | box-shadow: none;
39 | @include transition(all $base-duration $base-timing);
40 |
41 | &:focus,
42 | &:active {
43 | border: 1px solid $current-input-border;
44 | background-color: $current-input-bkg;
45 | box-shadow: none;
46 | outline: none;
47 | }
48 |
49 | &:disabled {
50 | background-color: shade($base-background-color, 5%);
51 | cursor: not-allowed;
52 | }
53 | }
54 |
55 | [type="search"] {
56 | appearance: none;
57 | }
58 |
59 | [type="checkbox"],
60 | [type="radio"] {
61 | display: inline;
62 | margin-right: $small-spacing / 2;
63 | }
64 |
65 | [type="file"] {
66 | margin-bottom: $small-spacing;
67 | width: 100%;
68 | }
69 |
70 | textarea {
71 | resize: vertical;
72 | width: 100%;
73 | height: 8rem;
74 | resize: none;
75 | overflow: auto;
76 | }
77 |
78 | select {
79 | width: auto;
80 | margin-bottom: $base-spacing;
81 | max-width: 100%;
82 | @include appearance(none);
83 | background: image-url('arrow-down.png') no-repeat 94% 50%;
84 | }
85 |
86 | fieldset {
87 | background-color: transparent;
88 | border: 0;
89 | margin: 0;
90 | padding: 0;
91 | }
92 |
93 | legend {
94 | font-weight: 600;
95 | margin-bottom: $small-spacing / 2;
96 | padding: 0;
97 | }
98 |
--------------------------------------------------------------------------------
/app/views/pages/informationgranted.html.haml:
--------------------------------------------------------------------------------
1 | .infromation-granted
2 | .container
3 | %hgroup.principal-header
4 | %h1 Búsqueda de Sujetos Obligados
5 | %h5 Cualquier figura que reciba y ejerza recursos públicos o realice actos de autoridad en el ámbito federal, estatal y municipal
6 |
7 | %form
8 | .six-columns
9 | .input-icon-left
10 | %input{:placeholder => "Busca sujeto por nombre o tipo de información...", :type => "text", :required => true}
11 | %i.fa.fa-search
12 | .three-columns.select
13 | %select
14 | %option ¿Dónde?
15 | %option Lugar1
16 | %option Lugar1
17 | .three-columns.select
18 | %select
19 | %option Sector
20 | %option Sector1
21 | %option Sector1
22 | %hr
23 | .container
24 | %hgroup
25 | %h1 Sujetos obligados en todo el país
26 |
27 | %h4
28 | %strong.blue 62%
29 | de los Sujetos Obligados NO se han unido a la plataforma
30 | #progressbar
31 |
32 | .numbers
33 | .three-columns.number
34 | .number-content
35 | %h2 2713
36 | %p Pendientes de unirse
37 |
38 | .three-columns.number
39 | .number-content
40 | %h2 4272
41 | %p Sujetos obligados
42 |
43 | .three-columns.number
44 | .number-content
45 | %h2 2400
46 | %p en la Federación
47 |
48 | .three-columns.number
49 | .number-content
50 | %h2 4300
51 | %p en Estados y Municipios
52 |
53 | %hr
54 | .container
55 | %hgroup
56 | %h1 Estadísticas de Sujetos Obligados
57 | .stats
58 | .six-columns
59 | %h2 Sector con mayor avance
60 | #r1
61 | #r2
62 | #r3
63 | #r4
64 | #r5
65 | = link_to "Todos los sectores", "#"
66 | .six-columns
67 | %h2 Estados con mayor avance
68 | #r6
69 | #r7
70 | #r8
71 | #r9
72 | #r10
73 | = link_to "Todos los estados", "#"
74 |
--------------------------------------------------------------------------------
/config/environments/development.rb:
--------------------------------------------------------------------------------
1 | Rails.application.configure do
2 | # Settings specified here will take precedence over those in config/application.rb.
3 |
4 | # In the development environment your application's code is reloaded on
5 | # every request. This slows down response time but is perfect for development
6 | # since you don't have to restart the web server when you make code changes.
7 | config.cache_classes = false
8 |
9 | # Do not eager load code on boot.
10 | config.eager_load = false
11 |
12 | # Show full error reports.
13 | config.consider_all_requests_local = true
14 |
15 | # Enable/disable caching. By default caching is disabled.
16 | if Rails.root.join('tmp/caching-dev.txt').exist?
17 | config.action_controller.perform_caching = true
18 |
19 | config.cache_store = :memory_store
20 | config.public_file_server.headers = {
21 | 'Cache-Control' => 'public, max-age=172800'
22 | }
23 | else
24 | config.action_controller.perform_caching = false
25 |
26 | config.cache_store = :null_store
27 | end
28 |
29 | # Don't care if the mailer can't send.
30 | config.action_mailer.raise_delivery_errors = false
31 |
32 | config.action_mailer.perform_caching = false
33 |
34 | # Print deprecation notices to the Rails logger.
35 | config.active_support.deprecation = :log
36 |
37 | # Raise an error on page load if there are pending migrations.
38 | config.active_record.migration_error = :page_load
39 |
40 | # Debug mode disables concatenation and preprocessing of assets.
41 | # This option may cause significant delays in view rendering with a large
42 | # number of complex assets.
43 | config.assets.debug = true
44 |
45 | # Suppress logger output for asset requests.
46 | config.assets.quiet = true
47 |
48 | # Raises error for missing translations
49 | # config.action_view.raise_on_missing_translations = true
50 |
51 | # Use an evented file watcher to asynchronously detect changes in source code,
52 | # routes, locales, etc. This feature depends on the listen gem.
53 | config.file_watcher = ActiveSupport::EventedFileUpdateChecker
54 | end
55 |
--------------------------------------------------------------------------------
/Gemfile:
--------------------------------------------------------------------------------
1 | source 'https://rubygems.org'
2 |
3 |
4 | # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
5 | gem 'rails', '~> 5.0.0'
6 | # Use sqlite3 as the database for Active Record
7 | gem 'sqlite3', :group => :development
8 | # Use Puma as the app server
9 | gem 'puma', '~> 3.0'
10 | # Use SCSS for stylesheets
11 | gem 'sass-rails', '~> 5.0'
12 | # Use Uglifier as compressor for JavaScript assets
13 | gem 'uglifier', '>= 1.3.0'
14 | # Use CoffeeScript for .coffee assets and views
15 | gem 'coffee-rails', '~> 4.2'
16 | # See https://github.com/rails/execjs#readme for more supported runtimes
17 | # gem 'therubyracer', platforms: :ruby
18 |
19 | # Use jquery as the JavaScript library
20 | gem 'jquery-rails'
21 | # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
22 | gem 'turbolinks', '~> 5'
23 | # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
24 | gem 'jbuilder', '~> 2.5'
25 | # Use Redis adapter to run Action Cable in production
26 | # gem 'redis', '~> 3.0'
27 | # Use ActiveModel has_secure_password
28 | # gem 'bcrypt', '~> 3.1.7'
29 | gem "neat", "~> 1.7"
30 | gem "bourbon", "~> 4.2"
31 |
32 | gem "font-awesome-sass"
33 |
34 | # Use Capistrano for deployment
35 | # gem 'capistrano-rails', group: :development
36 | gem "haml"
37 | gem 'haml-rails', :group => :development
38 |
39 | group :production do
40 | gem 'pg'
41 | end
42 | group :development, :test do
43 | # Call 'byebug' anywhere in the code to stop execution and get a debugger console
44 | gem 'byebug', platform: :mri
45 | end
46 |
47 | group :development do
48 | # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
49 | gem 'web-console'
50 | gem 'listen', '~> 3.0.5'
51 | # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
52 | gem 'spring'
53 | gem 'spring-watcher-listen', '~> 2.0.0'
54 | end
55 |
56 | # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
57 | gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
58 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/components/_grid.scss:
--------------------------------------------------------------------------------
1 | // grid
2 | // ---------------------------------------
3 |
4 | [class*="-column"] {
5 | float: left;
6 | }
7 |
8 | .container{
9 | margin: 0 auto;
10 |
11 | @media (min-width: 768px) {
12 | [class*="-column"] {
13 | margin-right: $gutter-size;
14 |
15 | &:last-child {
16 | margin-right: 0;
17 | }
18 | }
19 |
20 | .one-column { width: $column-size; }
21 | .two-columns { width: columnSizer(2); }
22 | .three-columns { width: columnSizer(3); }
23 | .four-columns { width: columnSizer(4); }
24 | .five-columns { width: columnSizer(5); }
25 | .six-columns { width: columnSizer(6); }
26 | .seven-columns { width: columnSizer(7); }
27 | .eight-columns { width: columnSizer(8); }
28 | .nine-columns { width: columnSizer(9); }
29 | .ten-columns { width: columnSizer(10); }
30 | .eleven-columns { width: columnSizer(11); }
31 | .twelve-columns { width: columnSizer(12); }
32 |
33 | .one-column.centered { margin: 0 columnCentered(1); }
34 | .two-columns.centered { margin: 0 columnCentered(2); }
35 | .three-columns.centered { margin: 0 columnCentered(3); }
36 | .four-columns.centered { margin: 0 columnCentered(4); }
37 | .five-columns.centered { margin: 0 columnCentered(5); }
38 | .six-columns.centered { margin: 0 columnCentered(6); }
39 | .seven-columns.centered { margin: 0 columnCentered(7); }
40 | .eight-columns.centered { margin: 0 columnCentered(8); }
41 | .nine-columns.centered { margin: 0 columnCentered(9); }
42 | .ten-columns.centered { margin: 0 columnCentered(10); }
43 | .eleven-columns.centered { margin: 0 columnCentered(11); }
44 | }
45 |
46 | @media (min-width: 1200px) {
47 | width: $max-width;
48 | }
49 |
50 | @media (min-width: 900px) and (max-width: 1199px) {
51 | width: 870px;
52 | }
53 |
54 | @media (min-width: 768px) and (max-width: 899px) {
55 | width: 738px;;
56 | }
57 |
58 | @media (max-width: 767px) {
59 | width: 100%;
60 | padding-left: 1rem;
61 | padding-right: 1rem;
62 |
63 | [class*="-column"] {
64 | margin: 0;
65 | }
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/config/puma.rb:
--------------------------------------------------------------------------------
1 | # Puma can serve each request in a thread from an internal thread pool.
2 | # The `threads` method setting takes two numbers a minimum and maximum.
3 | # Any libraries that use thread pools should be configured to match
4 | # the maximum value specified for Puma. Default is set to 5 threads for minimum
5 | # and maximum, this matches the default thread size of Active Record.
6 | #
7 | threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i
8 | threads threads_count, threads_count
9 |
10 | # Specifies the `port` that Puma will listen on to receive requests, default is 3000.
11 | #
12 | port ENV.fetch("PORT") { 3000 }
13 |
14 | # Specifies the `environment` that Puma will run in.
15 | #
16 | environment ENV.fetch("RAILS_ENV") { "development" }
17 |
18 | # Specifies the number of `workers` to boot in clustered mode.
19 | # Workers are forked webserver processes. If using threads and workers together
20 | # the concurrency of the application would be max `threads` * `workers`.
21 | # Workers do not work on JRuby or Windows (both of which do not support
22 | # processes).
23 | #
24 | # workers ENV.fetch("WEB_CONCURRENCY") { 2 }
25 |
26 | # Use the `preload_app!` method when specifying a `workers` number.
27 | # This directive tells Puma to first boot the application and load code
28 | # before forking the application. This takes advantage of Copy On Write
29 | # process behavior so workers use less memory. If you use this option
30 | # you need to make sure to reconnect any threads in the `on_worker_boot`
31 | # block.
32 | #
33 | # preload_app!
34 |
35 | # The code in the `on_worker_boot` will be called if you are using
36 | # clustered mode by specifying a number of `workers`. After each worker
37 | # process is booted this block will be run, if you are using `preload_app!`
38 | # option you will want to use this block to reconnect to any threads
39 | # or connections that may have been created at application boot, Ruby
40 | # cannot share connections between processes.
41 | #
42 | # on_worker_boot do
43 | # ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
44 | # end
45 |
46 | # Allow puma to be restarted by `rails restart` command.
47 | plugin :tmp_restart
48 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/components/_navigation.scss:
--------------------------------------------------------------------------------
1 | // -----------------------------------------------
2 | // navigation
3 | // -----------------------------------------------
4 |
5 | .navigation {
6 | z-index: 10;
7 |
8 | margin-bottom: 1.3rem;
9 |
10 | .navigation-header {
11 | > a {
12 | display: block;
13 | width: 70%;
14 | }
15 |
16 | > .toggle {
17 | position: absolute;
18 | top: 2.2rem;
19 | right: 1rem;
20 | width: 44px;
21 | height: 34px;
22 | padding: 6px;
23 | cursor: pointer;
24 | z-index: 15;
25 |
26 | > span {
27 | display: block;
28 | width: 100%;
29 | height: 4px;
30 | margin-bottom: 5px;
31 | background-color: $white;
32 |
33 | &:last-child { margin: 0; }
34 | }
35 | }
36 | }
37 |
38 | .navigation-header,
39 | nav {
40 | float: left;
41 | }
42 |
43 | nav {
44 | > a {
45 | display: inline-block;
46 | color: $white;
47 | font-weight: 300;
48 | font-size: 18px;
49 |
50 | &:active,
51 | &:focus,
52 | &:hover {
53 | color: $blue-dark;
54 | text-decoration: none;
55 | }
56 |
57 | &:last-child {
58 | padding-right: 0;
59 | }
60 | }
61 | }
62 |
63 | @media screen and (min-width: 697px) {
64 | .navigation-header {
65 | width: 40%;
66 |
67 | .toggle {
68 | display: none;
69 | }
70 | }
71 |
72 | nav {
73 | display: block !important;
74 | width: 60%;
75 | text-align: right;
76 |
77 | > a {
78 | padding: 1rem 0.8rem;
79 | }
80 | }
81 | }
82 |
83 | @media screen and (max-width: 696px) {
84 | .navigation-header {
85 | width: 100%;
86 |
87 | > .title {
88 | width: 80%;
89 | }
90 |
91 | .toggle {
92 | display: block;
93 | }
94 | }
95 |
96 | nav {
97 | display: none;
98 | width: 100%;
99 | text-align: left;
100 |
101 | > a {
102 | display: block;
103 | padding: 0.9rem;
104 | }
105 | }
106 | }
107 | }
108 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Tu Plataforma Abierta
2 | La versión abierta y comunitaria de la Plataforma Nacional de Transparencia.
3 |
4 | ## ¿Qué es Tu Plataforma Abierta?
5 |
6 | El 5 de mayo el Instituto Nacional de Acceso a la Información (INAI) lanzó la Plataforma Nacional de Transparencia, herramienta central para realizar solicitudes de información pública antes sujetos obligados, según la Ley General de Transparencia y Acceso a información Pública, reemplazando a INFOMEX.
7 |
8 | El desarrollo de esta herramienta tuvo un costo total de casi 20 millones de pesos, y contaba con muchas carencias técnicas, funcionales y de usabilidad.
9 |
10 | Días después, [Cívica Digital](http://civica.digital) [lanza una propuesta visual](http://blog.civica.digital/2016/05/31/como-mejoramos-la-plataforma-nacional-de-transparencia/) para mejorar la Plataforma Nacional de Transparencia. Partiendo de ahí, Codeando México [hace un llamado nacional](http://blog.codeandomexico.org/2016/06/06/la-plataforma-nacional-de-transparencia-abierta/) a la comunidad tecnológica a colaborar para construir una versión funcional, abierta y ciudadana de la plataforma.
11 |
12 | El objetivo principal de este proyecto consiste en desarrollar una versión más usable, funcional y amigable para realizar solicitudes de información.
13 |
14 | ## Participa
15 |
16 | * Para contruir con código, hacks, diseño o ideas, revisa la [guía de contribución](/CONTRIBUTING.md)
17 | * Únete a los Hangouts abiertos que tenemos semanalmente, los miércoles a las 6:00pm (GMT-6) en: http://bit.ly/tu-plataforma-abierta
18 | * [Únete al Slack de Codeando México](http://slack.codeandomexico.org). Estaremos en el canal de #tu-plataforma-abierta.
19 | * Utiliza el hashtag #TuPlataformaAbierta.
20 |
21 | ## Comunicación
22 | * Contáctanos por correo electrónico en [equipo@codeandomexico.org](mailto:equipo@codeandomexico.org).
23 | * En redes sociales: [Facebook](http://facebook.com/CodeandoMexico), [Twitter](http://twitter.com/CodeandoMexico), o únete al grupo de la [Comunidad Codeando México](http://facebook.com/groups/370710456416676/).
24 |
25 | ## Licencia
26 |
27 | _Available under the license: MIT. Read the document [LICENSE](/LICENSE.md) for more information._
28 |
29 | Creado por [Cívica Digital](http://civica.digital), impulsado por la comunidad de Codeando México. 2016.
30 |
--------------------------------------------------------------------------------
/app/views/layouts/application.html.haml:
--------------------------------------------------------------------------------
1 | !!!
2 | %html
3 | %head
4 | %meta{charset: "utf-8"}
5 | %meta{content: "IE=edge,chrome=1", http: {equiv: "X-UA-Compatible"}}
6 | %meta{name: "viewport", content: "width=device-width, initial-scale=1"}
7 | %title Plataforma Nacional de Transparencia
8 | = stylesheet_link_tag "application"
9 |
10 | %body{:class => "#{@page_classes}"}
11 | %header#principal-menu.navigation
12 | .container
13 | .navigation-header
14 | = link_to image_tag('logo-blanco.png'), '/'
15 | .toggle
16 | %span
17 | %span
18 | %span
19 | %nav
20 | = link_to 'Sistemas', '#'
21 | = link_to 'Sujetos obligados', '/sujetos'
22 | = link_to 'Crear solicitud', '/solicitud'
23 |
24 | = yield
25 |
26 | %footer
27 | .container
28 | .bottom
29 | .three-columns
30 | %h4 Sistemas de la Plataforma
31 | %ul
32 | %li= link_to "Solicitud de Acceso a la Información", "#"
33 | %li= link_to "Gestión de Medios de Impugnación", "#"
34 | %li= link_to "Portales de Obligaciones de Transparencia", "#"
35 | %li= link_to "Comunicación entre Organismos Garantes", "#"
36 | .three-columns
37 | %h4 Sujetos Obligados
38 | %ul
39 | %li= link_to "Federación", "#"
40 | %li= link_to "Estados", "#"
41 | %li= link_to "Municipios", "#"
42 | %li= link_to "Sindicatos", "#"
43 | %li= link_to "Partidos Políticos", "#"
44 | .three-columns
45 | %h4 Conoce más
46 | %ul
47 | %li= link_to "Sobre la PNT", "#"
48 | %li= link_to "Acerca de la Ley de Transparencia", "#"
49 | %li= link_to "Estadísticas", "#"
50 | .three-columns
51 | %h4 Contáctanos
52 | .social
53 | = link_to "http://github.com/CodeandoMexico/tu-plataforma-abierta", target: "_blank" do
54 | %i.fa.fa-github-alt
55 | .copyright
56 | .container
57 | %small 2016 - Instituto Nacional de Transparencia, Acceso a la Información y Protección de Datos Personales.
58 | %ul
59 | %li
60 | %small= link_to "Aviso de privacidad", "#"
61 | %li
62 | %small= link_to "Términos y condiciones", "#"
63 |
64 |
65 |
66 | / = partial 'olark'
67 |
68 | = javascript_include_tag "https://code.jquery.com/jquery-2.1.1.min.js"
69 | = javascript_include_tag "http://d3js.org/d3.v2.js"
70 | = javascript_include_tag "application"
71 | / = google_analytics_tag
72 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/components/_banner.scss:
--------------------------------------------------------------------------------
1 | .banner{
2 | padding: 120px 0 0px 0;
3 | overflow: hidden;
4 | background: rgba(152,171,212,1);
5 | background: -moz-radial-gradient(center, ellipse cover, rgba(152,171,212,1) 38%, rgba(136,154,196,1) 100%);
6 | background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(38%, rgba(152,171,212,1)), color-stop(100%, rgba(136,154,196,1)));
7 | background: -webkit-radial-gradient(center, ellipse cover, rgba(152,171,212,1) 38%, rgba(136,154,196,1) 100%);
8 | background: -o-radial-gradient(center, ellipse cover, rgba(152,171,212,1) 38%, rgba(136,154,196,1) 100%);
9 | background: -ms-radial-gradient(center, ellipse cover, rgba(152,171,212,1) 38%, rgba(136,154,196,1) 100%);
10 | background: radial-gradient(ellipse at center, rgba(152,171,212,1) 38%, rgba(136,154,196,1) 100%);
11 | filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#98ABD4', endColorstr='#899BC0', GradientType=1 );
12 |
13 | .text {
14 | color: $white;
15 | text-align: center;
16 | margin: 0 auto;
17 | font-size: 18px;
18 | background-image: image-url('mapa-negro.svg');
19 | background-size: 100%;
20 | background-repeat: no-repeat;
21 | background-position: top center;
22 | padding: 120px 0 40px 0;
23 |
24 | a {
25 | color: $blue-dark;
26 |
27 | &:hover,
28 | &:focus {
29 | color: shade($blue-dark, 25%);
30 | }
31 | }
32 |
33 | @media (max-width: 640px) { width: 100%; }
34 | @media (min-width: 641px) { width: 70%; }
35 |
36 | h3 {
37 | font-size: 30px;
38 | font-weight: 400;
39 | padding-bottom: 30px;
40 | color: $white;
41 | }
42 |
43 | p {
44 | font-weight: 100;
45 | font-size: 26px;
46 | }
47 |
48 | .button {
49 | color: $blue;
50 | background-color: $lightest-blue;
51 | margin: 60px 0;
52 | padding: 20px 40px;
53 | border-radius: 50px;
54 | font-size: 18px;
55 | font-weight: 400;
56 | white-space: normal;
57 | transition: all .5s all;
58 | @include transition(all $base-duration $base-timing);
59 |
60 | &:hover,
61 | &:focus {
62 | text-decoration: none;
63 | background-color: $pink;
64 | transition: all .5s all;
65 | color: $white;
66 | }
67 | }
68 | }
69 | }
70 |
71 | .banner-bottom {
72 | background-color: $blue-dark;
73 | padding: 20px 0;
74 | font-size: 18px;
75 | text-align: center;
76 |
77 | h3, p {
78 | display: inline-block;
79 | margin-bottom: 0;
80 | padding-bottom: 0;
81 | }
82 |
83 | h3 {
84 | color: $blue;
85 | font-size: 18px;
86 | font-weight: 500;
87 | }
88 |
89 | p {
90 | color: $white;
91 | font-weight: 300;
92 | }
93 | }
94 |
--------------------------------------------------------------------------------
/app/views/pages/index.html.haml:
--------------------------------------------------------------------------------
1 | .banner
2 | .container
3 | .text
4 | %h3 ¡Bienvenido a la Plataforma Nacional de Transparencia!
5 | %p
6 | Con esta plataforma podrás solicitar de manera sencilla
7 | %br/
8 | información púlblica de tu interés.
9 | =link_to 'Crear nueva solicitud de información','/solicitud', class:'button button-new-request'
10 | %br
11 | =link_to 'Explora el Sistema Nacional de Transparencia','#'
12 | %br
13 | = "Encuentra los estados en proceso de integración a la plataforma"
14 | =link_to 'aquí','#'
15 |
16 | .banner-bottom
17 | .container
18 | .four-columns
19 | %h3 1,300
20 | %p Sujetos Obligados participando
21 | .four-columns
22 | %h3 3,400
23 | %p solicitudes concluidas este mes
24 | .four-columns
25 | %h3 450
26 | %p ciudadanos participando
27 |
28 | %section.section-video
29 | .container
30 | %h1 Transparencia fácilmente.
31 | %h3.slim-header-blue Nunca antes había sido tan sencillo transparentar información de tu gobierno en México.
32 | %h4.slim-header Tutoriales disponibles:
33 | %ul.tutorials
34 | %li
35 | = link_to '#' do
36 | Cómo crear una solicitud de información
37 | %i.fa.fa-question-circle
38 | %li
39 | = link_to '#' do
40 | Cómo presentar una queja
41 | %i.fa.fa-question-circle
42 | .video
43 | .video-wrapper
44 | %iframe{:allowfullscreen => "", :frameborder => "0", :src => "https://www.youtube.com/embed/I0ynMjIhe9I?showinfo=0&iv_load_policy=3&controls=0"}
45 |
46 | %section.section-feed
47 | .container
48 | .six-columns
49 | %h2 Próximos eventos
50 | .event
51 | %h4 Jornada de Gobierno Abierto
52 | %p Nunca antes había sido tan sencillo transparentar información de tu gobierno en México.
53 | .date 8 de septiembre
54 | .event
55 | %h4 Jornada de Gobierno Abierto
56 | %p Nunca antes había sido tan sencillo transparentar información de tu gobierno en México.
57 | .date 8 de septiembre
58 | .event
59 | %h4 Jornada de Gobierno Abierto
60 | %p Nunca antes había sido tan sencillo transparentar información de tu gobierno en México.
61 | .date 8 de septiembre
62 |
63 | .six-columns
64 | %h2 Noticias nacionales
65 | .new
66 | %p Evento de lanzamiento de la Ley General de Transparencia por realizarse el próximo 6 de mayo en las oficinas del Instituto.
67 | %small 11 de mayo 2016
68 | =link_to "Ver noticia", "#", class: 'text-button'
69 | .new
70 | %p Evento de lanzamiento de la Ley General de Transparencia por realizarse el próximo 6 de mayo en las oficinas del Instituto.
71 | %small 11 de mayo 2016
72 | =link_to "Ver noticia", "#", class: 'text-button'
73 | .new
74 | %p Evento de lanzamiento de la Ley General de Transparencia por realizarse el próximo 6 de mayo en las oficinas del Instituto.
75 | %small 11 de mayo 2016
76 | =link_to "Ver noticia", "#", class: 'text-button'
77 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | ## Contribuyentes
2 |
3 | En el espíritu del [software libre][free-sw], **todos** están invitadísimos
4 | a mejorar este proyecto.
5 |
6 | [free-sw]: http://www.fsf.org/licensing/essays/free-sw.html
7 |
8 | ## ¿Cómo puedo contribuir?
9 | Lo interesante de Codeando México es su ecléctica comunidad.
10 | Y como dije anteriormente, todos pueden contribuir,
11 | aún así que no sean programadores.
12 |
13 | Aquí hay algunas formas en las que **tú** puedes contribuir:
14 | * usando el *alpha*, *beta*, o versiones que vayan saliendo
15 | * reportando errores que hayas encontrado en estas versiones
16 | * escribiendo o editando documentación
17 | * escribiendo especificaciones
18 | * escribiendo código (**ninguna contribución es demasiado pequeña**:
19 | arreglar errores ortográficos, *typos*, añadiendo comentarios,
20 | limpiando inconsistencias, etc.)
21 | * *refactoreando* código: (organizar archivos/modulos, crear interfaces,
22 | cambiando a un estilo más limpio, adaptarse a prácticas etc.)
23 | * arreglar [issues][issues]
24 | * dando retroalimentación del código (en pull requests o comentando en commits)
25 | * sugerir cosas que te gustaría que tuviera el proyecto (hazlo levantando un
26 | [issue][issues], o )
27 | * financiándolo (:beers: cheves pa' la banda)
28 | * dándole publicidad en sus medios, levantar la voz para que se sumen más
29 | esfuerzos, y no dejar esto en puras intenciones. (utiliza el hashtag
30 | #TuPlataformaAbierta)
31 |
32 | [issues]: https://github.com/CodeandoMexico/me-informo/issues/
33 |
34 | ### Necesidades puntuales
35 | - [] Crear el backend de la plataforma (de momento todo es estático).
36 | - [] Construir el API de la plataforma. Aquí hay un API mínimo.
37 | - [] Mejorar el diseño actual.
38 | - [] Agregar información sobre sujetos obligados, organismos garantes, etc.
39 |
40 | ## Obteniendo ayuda
41 | Tenemos un [canal de slack][slack], y estamos en #codeandomexico en
42 | `irc.freenode.net`.
43 | También estás invitadísimo a escribirnos a equipo@codeandomexico.org
44 |
45 | ## Abriendo un issue
46 | Si eres nuevo en GitHub, en te recomiendo leer la [guía de GitHub][github-guide]
47 | **simple y en español**.
48 |
49 | Por favor, asegúrate de que lo que vayas a poner, no lo haya puesto alguien más.
50 | Si es un error, trata de incluir el cómo replicarlo.
51 | Si es una mejora/sugerencia, argumenta el por qué.
52 |
53 | [github-guide]: https://github.com/MrOutis/GitHub-Simple
54 |
55 | ## Contribuyendo con código
56 | `༼ つ ◕_◕ ༽つ Dame tu pull requests!`
57 |
58 | Estos son los pasos para un pull request:
59 |
60 | 1. [Forkea el repositorio de Codeando México.][fork]
61 | 2. [Crea una branch con tu tópico.][branch]
62 | 3. Agrega pruebas (si no estás acostumbrado a escribir pruebas, muy mal,
63 | al menos prueba a mano lo que agregaste antes de enviárnoslo y agrega
64 | una indicación en el pull request de que no tiene pruebas, para que
65 | alguien más las pueda agregar).
66 | 5. Implementa tu maravillosa contribución.
67 | 8. `add -> commit -> push (a tu fork)`
68 | 9. [Mandanos tu pull request.][pr]
69 |
70 | [fork]: http://help.github.com/fork-a-repo/
71 | [branch]: http://learn.github.com/p/branching.html
72 | [pr]: http://help.github.com/send-pull-requests/
73 |
--------------------------------------------------------------------------------
/config/environments/production.rb:
--------------------------------------------------------------------------------
1 | Rails.application.configure do
2 | # Settings specified here will take precedence over those in config/application.rb.
3 |
4 | # Code is not reloaded between requests.
5 | config.cache_classes = true
6 |
7 | # Eager load code on boot. This eager loads most of Rails and
8 | # your application in memory, allowing both threaded web servers
9 | # and those relying on copy on write to perform better.
10 | # Rake tasks automatically ignore this option for performance.
11 | config.eager_load = true
12 |
13 | # Full error reports are disabled and caching is turned on.
14 | config.consider_all_requests_local = false
15 | config.action_controller.perform_caching = true
16 |
17 | # Disable serving static files from the `/public` folder by default since
18 | # Apache or NGINX already handles this.
19 | config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
20 |
21 | # Compress JavaScripts and CSS.
22 | config.assets.js_compressor = :uglifier
23 | # config.assets.css_compressor = :sass
24 |
25 | # Do not fallback to assets pipeline if a precompiled asset is missed.
26 | config.assets.compile = false
27 |
28 | # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
29 |
30 | # Enable serving of images, stylesheets, and JavaScripts from an asset server.
31 | # config.action_controller.asset_host = 'http://assets.example.com'
32 |
33 | # Specifies the header that your server uses for sending files.
34 | # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
35 | # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
36 |
37 | # Mount Action Cable outside main process or domain
38 | # config.action_cable.mount_path = nil
39 | # config.action_cable.url = 'wss://example.com/cable'
40 | # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
41 |
42 | # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
43 | # config.force_ssl = true
44 |
45 | # Use the lowest log level to ensure availability of diagnostic information
46 | # when problems arise.
47 | config.log_level = :debug
48 |
49 | # Prepend all log lines with the following tags.
50 | config.log_tags = [ :request_id ]
51 |
52 | # Use a different cache store in production.
53 | # config.cache_store = :mem_cache_store
54 |
55 | # Use a real queuing backend for Active Job (and separate queues per environment)
56 | # config.active_job.queue_adapter = :resque
57 | # config.active_job.queue_name_prefix = "pnt_#{Rails.env}"
58 | config.action_mailer.perform_caching = false
59 |
60 | # Ignore bad email addresses and do not raise email delivery errors.
61 | # Set this to true and configure the email server for immediate delivery to raise delivery errors.
62 | # config.action_mailer.raise_delivery_errors = false
63 |
64 | # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
65 | # the I18n.default_locale when a translation cannot be found).
66 | config.i18n.fallbacks = true
67 |
68 | # Send deprecation notices to registered listeners.
69 | config.active_support.deprecation = :notify
70 |
71 | # Use default logging formatter so that PID and timestamp are not suppressed.
72 | config.log_formatter = ::Logger::Formatter.new
73 |
74 | # Use a different logger for distributed setups.
75 | # require 'syslog/logger'
76 | # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
77 |
78 | if ENV["RAILS_LOG_TO_STDOUT"].present?
79 | logger = ActiveSupport::Logger.new(STDOUT)
80 | logger.formatter = config.log_formatter
81 | config.logger = ActiveSupport::TaggedLogging.new(logger)
82 | end
83 |
84 | # Do not dump schema after migrations.
85 | config.active_record.dump_schema_after_migration = false
86 | end
87 |
--------------------------------------------------------------------------------
/app/assets/javascripts/application.js:
--------------------------------------------------------------------------------
1 | //= require_tree .
2 |
3 | function print_bar(max_height, font_size_param, fill_bar, name, container_name){
4 | var max_width = $(container_name).width();
5 | var data = [1000, fill_bar*10]; // here are the data values; v1 = total, v2 = current value
6 | var chart = d3.select(container_name).append("svg") // creating the svg object inside the container div
7 | .attr("class", "chart")
8 | .attr("width", max_width) // bar has a fixed width
9 | .attr("height", max_height);
10 |
11 | var x = d3.scale.linear() // takes the fixed width and creates the percentage from the data values
12 | .domain([0, d3.max(data)])
13 | .range([0, max_width*0.8]);
14 |
15 | chart.selectAll("rect") // this is what actually creates the bars
16 | .data(data)
17 | .enter().append("rect")
18 | .attr("width", x)
19 | .attr("height", max_height*0.5)
20 | .attr("x",max_width*.01)
21 | .attr("y",0)
22 |
23 | chart.append("rect")
24 | .attr("width", max_width*.01*2)
25 | .attr("height", max_height*0.5)
26 | .attr("rx",max_width*.02*2)
27 | .attr("ry",max_width*.02*2)
28 | .style("fill","#8A9CBF");
29 |
30 | chart.append("rect")
31 | .attr("width", max_width*.01*2)
32 | .attr("height", max_height*0.5)
33 | .attr("rx",max_width*.02*2)
34 | .attr("ry",max_width*.02*2)
35 | .attr("x", max_width*.8)
36 | .style("fill",function(){
37 | if(fill_bar == 100){
38 | return "#8A9CBF"
39 | } else {
40 | return "#F1F5F6"
41 | }});
42 |
43 | chart.selectAll("text") // adding the text labels to the bar
44 | .data(data)
45 | .enter().append("text")
46 | .attr("x", function(d){
47 | if(x(d)==max_width*0.8 && fill_bar !=100){
48 | return max_width*0.05
49 | } else if (fill_bar > 90 && fill_bar <= 100) {
50 | return x(d)
51 | } else {
52 | return x(d)+max_width*.09
53 | }
54 | })
55 | .attr("y", max_height*0.25) // y position of the text inside bar
56 | .attr("dx", 5) // padding-right
57 | .attr("dy", ".35em") // vertical-align: middle
58 | .attr("text-anchor", function(d){
59 | if(x(d)==max_width*0.8 && fill_bar !=100){
60 | return "left"
61 | } else {
62 | return "end"
63 | }
64 | })// text-align: right
65 | .attr("font-size", font_size_param)
66 | .style("fill", function(d) {
67 | if (x(d)==max_width*0.8 && fill_bar !=100) {
68 | return "#F1F5F6";
69 | } else if (fill_bar > 90 && fill_bar <=100) {
70 | return "#fff"
71 | } else {
72 | return "#8A9CBF"
73 | }
74 | })
75 | .text(function(d){
76 | if(x(d)==max_width*0.8 && fill_bar !=100){
77 | return name
78 | } else {
79 | return String(fill_bar) + "%"
80 | }
81 | });
82 |
83 | if (fill_bar == 100) {
84 | chart.append("text")
85 | .attr("x", max_width*0.05)
86 | .attr("y", max_height*0.25) // y position of the text inside bar
87 | .attr("dx", 5) // padding-right
88 | .attr("dy", ".35em") // vertical-align: middle
89 | .attr("text-anchor", "left")// text-align: right
90 | .attr("font-size", font_size_param)
91 | .style("fill", "#F1F5F6")
92 | .text(name);
93 | }
94 | return null
95 | };
96 |
97 | function printProgressBar() {
98 | //print_bar(Width px -int , Height px - int, fontsize-string, fill % - int, title -str, container)
99 | print_bar(60, "18px", 62, "","#progressbar");
100 | print_bar(45, "12px", 65, "Sindicatos","#r1");
101 | print_bar(45, "12px", 49, "Partido Político","#r2");
102 | print_bar(45, "12px", 39, "Municipios","#r3");
103 | print_bar(45, "12px", 39, "Fondos","#r4");
104 | print_bar(45, "12px", 31, "Ejecutivo","#r5");
105 | print_bar(45, "12px", 100, "Jalisco","#r6");
106 | print_bar(45, "12px", 76, "Oaxaca","#r7");
107 | print_bar(45, "12px", 71, "Puebla","#r8");
108 | print_bar(45, "12px", 70, "Querétaro","#r9");
109 | print_bar(45, "12px", 64, "Hidalgo","#r10");
110 | }
111 |
112 | printProgressBar();
113 |
114 | $(window).resize(function() {
115 | $('#progressbar svg').remove();
116 | $('#r1 svg, #r2 svg, #r3 svg, #r4 svg, #r5 svg').remove();
117 | $('#r6 svg, #r7 svg, #r8 svg, #r9 svg, #r10 svg').remove();
118 |
119 | printProgressBar();
120 | });
121 |
--------------------------------------------------------------------------------
/app/views/pages/demand.html.haml:
--------------------------------------------------------------------------------
1 | .container.demand
2 | %hgroup.principal-header
3 | %h1 Nueva solicitud de información
4 | %h5
5 | Pedimos tus datos para poder enviar respuesta sobre tu solicitud, revisa nuestro
6 | =link_to 'aviso de privacidad', '#'
7 |
8 | .eight-columns.centered
9 | %form
10 | .question
11 | .input-inline
12 | %input{type: 'text', placeholder: 'Nombre completo o pseudónimo'}
13 | .input-inline
14 | %input{type: 'text', placeholder: 'Correo electrónico'}
15 |
16 | .question
17 | %label
18 | ¿A qué nivel de gobierno quieres pedirle información?
19 | .radio
20 | %label
21 | %input{type: 'radio', name: 'goverment_level', checked: 'checked'}
22 | %i.radio-icon
23 | %span Federal
24 | .radio
25 | %label
26 | %input{type: 'radio', name: 'goverment_level'}
27 | %i.radio-icon
28 | %span Estatal
29 | .radio
30 | %label
31 | %input{type: 'radio', name: 'goverment_level'}
32 | %i.radio-icon
33 | %span Municipal
34 |
35 | .question
36 | %label
37 | ¿A qué estado y municipio quieres pedirle información?
38 | .select
39 | %select
40 | %option Estado
41 | %option Colima
42 | %option México
43 | .select
44 | %select
45 | %option Municipio
46 | %option Colima
47 | %option Tecomán
48 |
49 | .question
50 | %label
51 | ¿A qué entidad quieres pedirle información?
52 | .radio
53 | %label
54 | %input{type: 'radio', name: 'entities', checked: 'checked'}
55 | %i.radio-icon
56 | %span Ejecitivo
57 | .radio
58 | %label
59 | %input{type: 'radio', name: 'entities'}
60 | %i.radio-icon
61 | %span Fideicomisos y fondos públicos
62 | .radio
63 | %label
64 | %input{type: 'radio', name: 'entities'}
65 | %i.radio-icon
66 | %span Judicial
67 | .radio
68 | %label
69 | %input{type: 'radio', name: 'entities'}
70 | %i.radio-icon
71 | %span Legislativo
72 | .radio
73 | %label
74 | %input{type: 'radio', name: 'entities'}
75 | %i.radio-icon
76 | %span Municipios
77 | .radio
78 | %label
79 | %input{type: 'radio', name: 'entities'}
80 | %i.radio-icon
81 | %span Partidos políticos
82 | .radio
83 | %label
84 | %input{type: 'radio', name: 'entities'}
85 | %i.radio-icon
86 | %span Sindicatos
87 | .radio
88 | %label
89 | %input{type: 'radio', name: 'entities'}
90 | %i.radio-icon
91 | %span Órganos autónomos
92 |
93 | .question
94 | %label Elige uno o varios sujetos a quienes pedirles información:
95 | .input-inline
96 | %textarea{type: 'text'}
97 |
98 | .question
99 | %label Solicitud de información:
100 | =link_to 'Mira nuestro video tutorial para que pidas información como la necesitas', '#'
101 | .input-inline
102 | %textarea{type: 'text'}
103 |
104 | .question
105 | %label Datos que faciliten la búsqueda y eventual localización de la información (opcional):
106 | =link_to 'Mira nuestro video tutorial para que escribas los datos necesarios', '#'
107 | .input-inline
108 | %textarea{type: 'text'}
109 |
110 | .question.text-centered
111 | .inputfile
112 | %input{type: 'file'}
113 | %label.big-button Adjuntar archivo
114 |
115 | .question
116 | %label
117 | ¿Cómo quieres recibir las notificaciones sobre tu solicitud?
118 | .radio
119 | %label
120 | %input{type: 'radio', name: 'status_request', checked: 'checked'}
121 | %i.radio-icon
122 | %span Acudir a la unidad de transparencia
123 | .radio
124 | %label
125 | %input{type: 'radio', name: 'status_request'}
126 | %i.radio-icon
127 | %span Estrados de la unidad de transparencia
128 | .radio
129 | %label
130 | %input{type: 'radio', name: 'status_request'}
131 | %i.radio-icon
132 | %span Correo
133 | .radio
134 | %label
135 | %input{type: 'radio', name: 'status_request'}
136 | %i.radio-icon
137 | %span Domicilio
138 |
139 | .question
140 | %label
141 | ¿Cómo quieres recibir la información resultante de tu solicitud?
142 | .radio
143 | %label
144 | %input{type: 'radio', name: 'result_request', checked: 'checked'}
145 | %i.radio-icon
146 | %span Electrónico através del sistema de PNT
147 | .radio
148 | %label
149 | %input{type: 'radio', name: 'result_request'}
150 | %i.radio-icon
151 | %span Copia simple (con costo)
152 | .radio
153 | %label
154 | %input{type: 'radio', name: 'result_request'}
155 | %i.radio-icon
156 | %span Copia certificada (con costo)
157 | .radio
158 | %label
159 | %input{type: 'radio', name: 'result_request'}
160 | %i.radio-icon
161 | %span Consultas directas
162 | .radio
163 | %label
164 | %input{type: 'radio', name: 'result_request'}
165 | %i.radio-icon
166 | %span Cualquier otro medio
167 |
168 | .question.text-centered
169 | %button.big-button{type: 'submit'} Enviar solicitud
170 |
--------------------------------------------------------------------------------
/Gemfile.lock:
--------------------------------------------------------------------------------
1 | GEM
2 | remote: https://rubygems.org/
3 | specs:
4 | actioncable (5.0.0)
5 | actionpack (= 5.0.0)
6 | nio4r (~> 1.2)
7 | websocket-driver (~> 0.6.1)
8 | actionmailer (5.0.0)
9 | actionpack (= 5.0.0)
10 | actionview (= 5.0.0)
11 | activejob (= 5.0.0)
12 | mail (~> 2.5, >= 2.5.4)
13 | rails-dom-testing (~> 2.0)
14 | actionpack (5.0.0)
15 | actionview (= 5.0.0)
16 | activesupport (= 5.0.0)
17 | rack (~> 2.0)
18 | rack-test (~> 0.6.3)
19 | rails-dom-testing (~> 2.0)
20 | rails-html-sanitizer (~> 1.0, >= 1.0.2)
21 | actionview (5.0.0)
22 | activesupport (= 5.0.0)
23 | builder (~> 3.1)
24 | erubis (~> 2.7.0)
25 | rails-dom-testing (~> 2.0)
26 | rails-html-sanitizer (~> 1.0, >= 1.0.2)
27 | activejob (5.0.0)
28 | activesupport (= 5.0.0)
29 | globalid (>= 0.3.6)
30 | activemodel (5.0.0)
31 | activesupport (= 5.0.0)
32 | activerecord (5.0.0)
33 | activemodel (= 5.0.0)
34 | activesupport (= 5.0.0)
35 | arel (~> 7.0)
36 | activesupport (5.0.0)
37 | concurrent-ruby (~> 1.0, >= 1.0.2)
38 | i18n (~> 0.7)
39 | minitest (~> 5.1)
40 | tzinfo (~> 1.1)
41 | arel (7.1.1)
42 | bourbon (4.2.7)
43 | sass (~> 3.4)
44 | thor (~> 0.19)
45 | builder (3.2.2)
46 | byebug (9.0.5)
47 | coffee-rails (4.2.1)
48 | coffee-script (>= 2.2.0)
49 | railties (>= 4.0.0, < 5.2.x)
50 | coffee-script (2.4.1)
51 | coffee-script-source
52 | execjs
53 | coffee-script-source (1.10.0)
54 | concurrent-ruby (1.0.2)
55 | debug_inspector (0.0.2)
56 | erubis (2.7.0)
57 | execjs (2.7.0)
58 | ffi (1.9.14)
59 | font-awesome-sass (4.6.2)
60 | sass (>= 3.2)
61 | globalid (0.3.7)
62 | activesupport (>= 4.1.0)
63 | haml (4.0.7)
64 | tilt
65 | haml-rails (0.9.0)
66 | actionpack (>= 4.0.1)
67 | activesupport (>= 4.0.1)
68 | haml (>= 4.0.6, < 5.0)
69 | html2haml (>= 1.0.1)
70 | railties (>= 4.0.1)
71 | html2haml (2.0.0)
72 | erubis (~> 2.7.0)
73 | haml (~> 4.0.0)
74 | nokogiri (~> 1.6.0)
75 | ruby_parser (~> 3.5)
76 | i18n (0.7.0)
77 | jbuilder (2.6.0)
78 | activesupport (>= 3.0.0, < 5.1)
79 | multi_json (~> 1.2)
80 | jquery-rails (4.1.1)
81 | rails-dom-testing (>= 1, < 3)
82 | railties (>= 4.2.0)
83 | thor (>= 0.14, < 2.0)
84 | listen (3.0.8)
85 | rb-fsevent (~> 0.9, >= 0.9.4)
86 | rb-inotify (~> 0.9, >= 0.9.7)
87 | loofah (2.0.3)
88 | nokogiri (>= 1.5.9)
89 | mail (2.6.4)
90 | mime-types (>= 1.16, < 4)
91 | method_source (0.8.2)
92 | mime-types (3.1)
93 | mime-types-data (~> 3.2015)
94 | mime-types-data (3.2016.0521)
95 | mini_portile2 (2.1.0)
96 | minitest (5.9.0)
97 | multi_json (1.12.1)
98 | neat (1.7.4)
99 | bourbon (>= 4.0)
100 | sass (>= 3.3)
101 | nio4r (1.2.1)
102 | nokogiri (1.6.8)
103 | mini_portile2 (~> 2.1.0)
104 | pkg-config (~> 1.1.7)
105 | pg (0.18.4)
106 | pkg-config (1.1.7)
107 | puma (3.6.0)
108 | rack (2.0.1)
109 | rack-test (0.6.3)
110 | rack (>= 1.0)
111 | rails (5.0.0)
112 | actioncable (= 5.0.0)
113 | actionmailer (= 5.0.0)
114 | actionpack (= 5.0.0)
115 | actionview (= 5.0.0)
116 | activejob (= 5.0.0)
117 | activemodel (= 5.0.0)
118 | activerecord (= 5.0.0)
119 | activesupport (= 5.0.0)
120 | bundler (>= 1.3.0, < 2.0)
121 | railties (= 5.0.0)
122 | sprockets-rails (>= 2.0.0)
123 | rails-dom-testing (2.0.1)
124 | activesupport (>= 4.2.0, < 6.0)
125 | nokogiri (~> 1.6.0)
126 | rails-html-sanitizer (1.0.3)
127 | loofah (~> 2.0)
128 | railties (5.0.0)
129 | actionpack (= 5.0.0)
130 | activesupport (= 5.0.0)
131 | method_source
132 | rake (>= 0.8.7)
133 | thor (>= 0.18.1, < 2.0)
134 | rake (11.2.2)
135 | rb-fsevent (0.9.7)
136 | rb-inotify (0.9.7)
137 | ffi (>= 0.5.0)
138 | ruby_parser (3.8.2)
139 | sexp_processor (~> 4.1)
140 | sass (3.4.22)
141 | sass-rails (5.0.6)
142 | railties (>= 4.0.0, < 6)
143 | sass (~> 3.1)
144 | sprockets (>= 2.8, < 4.0)
145 | sprockets-rails (>= 2.0, < 4.0)
146 | tilt (>= 1.1, < 3)
147 | sexp_processor (4.7.0)
148 | spring (1.7.2)
149 | spring-watcher-listen (2.0.0)
150 | listen (>= 2.7, < 4.0)
151 | spring (~> 1.2)
152 | sprockets (3.7.0)
153 | concurrent-ruby (~> 1.0)
154 | rack (> 1, < 3)
155 | sprockets-rails (3.1.1)
156 | actionpack (>= 4.0)
157 | activesupport (>= 4.0)
158 | sprockets (>= 3.0.0)
159 | sqlite3 (1.3.11)
160 | thor (0.19.1)
161 | thread_safe (0.3.5)
162 | tilt (2.0.5)
163 | turbolinks (5.0.1)
164 | turbolinks-source (~> 5)
165 | turbolinks-source (5.0.0)
166 | tzinfo (1.2.2)
167 | thread_safe (~> 0.1)
168 | uglifier (3.0.1)
169 | execjs (>= 0.3.0, < 3)
170 | web-console (3.3.1)
171 | actionview (>= 5.0)
172 | activemodel (>= 5.0)
173 | debug_inspector
174 | railties (>= 5.0)
175 | websocket-driver (0.6.4)
176 | websocket-extensions (>= 0.1.0)
177 | websocket-extensions (0.1.2)
178 |
179 | PLATFORMS
180 | ruby
181 |
182 | DEPENDENCIES
183 | bourbon (~> 4.2)
184 | byebug
185 | coffee-rails (~> 4.2)
186 | font-awesome-sass
187 | haml
188 | haml-rails
189 | jbuilder (~> 2.5)
190 | jquery-rails
191 | listen (~> 3.0.5)
192 | neat (~> 1.7)
193 | pg
194 | puma (~> 3.0)
195 | rails (~> 5.0.0)
196 | sass-rails (~> 5.0)
197 | spring
198 | spring-watcher-listen (~> 2.0.0)
199 | sqlite3
200 | turbolinks (~> 5)
201 | tzinfo-data
202 | uglifier (>= 1.3.0)
203 | web-console
204 |
205 | BUNDLED WITH
206 | 1.12.5
207 |
--------------------------------------------------------------------------------
/vendor/assets/stylesheets/_normalize.scss:
--------------------------------------------------------------------------------
1 | /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
2 |
3 | /**
4 | * 1. Set default font family to sans-serif.
5 | * 2. Prevent iOS text size adjust after orientation change, without disabling
6 | * user zoom.
7 | */
8 |
9 | html {
10 | font-family: sans-serif; /* 1 */
11 | -ms-text-size-adjust: 100%; /* 2 */
12 | -webkit-text-size-adjust: 100%; /* 2 */
13 | }
14 |
15 | /**
16 | * Remove default margin.
17 | */
18 |
19 | body {
20 | margin: 0;
21 | }
22 |
23 | /* HTML5 display definitions
24 | ========================================================================== */
25 |
26 | /**
27 | * Correct `block` display not defined for any HTML5 element in IE 8/9.
28 | * Correct `block` display not defined for `details` or `summary` in IE 10/11
29 | * and Firefox.
30 | * Correct `block` display not defined for `main` in IE 11.
31 | */
32 |
33 | article,
34 | aside,
35 | details,
36 | figcaption,
37 | figure,
38 | footer,
39 | header,
40 | hgroup,
41 | main,
42 | menu,
43 | nav,
44 | section,
45 | summary {
46 | display: block;
47 | }
48 |
49 | /**
50 | * 1. Correct `inline-block` display not defined in IE 8/9.
51 | * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
52 | */
53 |
54 | audio,
55 | canvas,
56 | progress,
57 | video {
58 | display: inline-block; /* 1 */
59 | vertical-align: baseline; /* 2 */
60 | }
61 |
62 | /**
63 | * Prevent modern browsers from displaying `audio` without controls.
64 | * Remove excess height in iOS 5 devices.
65 | */
66 |
67 | audio:not([controls]) {
68 | display: none;
69 | height: 0;
70 | }
71 |
72 | /**
73 | * Address `[hidden]` styling not present in IE 8/9/10.
74 | * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
75 | */
76 |
77 | [hidden],
78 | template {
79 | display: none;
80 | }
81 |
82 | /* Links
83 | ========================================================================== */
84 |
85 | /**
86 | * Remove the gray background color from active links in IE 10.
87 | */
88 |
89 | a {
90 | background-color: transparent;
91 | }
92 |
93 | /**
94 | * Improve readability when focused and also mouse hovered in all browsers.
95 | */
96 |
97 | a:active,
98 | a:hover {
99 | outline: 0;
100 | }
101 |
102 | /* Text-level semantics
103 | ========================================================================== */
104 |
105 | /**
106 | * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
107 | */
108 |
109 | abbr[title] {
110 | border-bottom: 1px dotted;
111 | }
112 |
113 | /**
114 | * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
115 | */
116 |
117 | b,
118 | strong {
119 | font-weight: bold;
120 | }
121 |
122 | /**
123 | * Address styling not present in Safari and Chrome.
124 | */
125 |
126 | dfn {
127 | font-style: italic;
128 | }
129 |
130 | /**
131 | * Address variable `h1` font-size and margin within `section` and `article`
132 | * contexts in Firefox 4+, Safari, and Chrome.
133 | */
134 |
135 | h1 {
136 | font-size: 2em;
137 | margin: 0.67em 0;
138 | }
139 |
140 | /**
141 | * Address styling not present in IE 8/9.
142 | */
143 |
144 | mark {
145 | background: #ff0;
146 | color: #000;
147 | }
148 |
149 | /**
150 | * Address inconsistent and variable font size in all browsers.
151 | */
152 |
153 | small {
154 | font-size: 80%;
155 | }
156 |
157 | /**
158 | * Prevent `sub` and `sup` affecting `line-height` in all browsers.
159 | */
160 |
161 | sub,
162 | sup {
163 | font-size: 75%;
164 | line-height: 0;
165 | position: relative;
166 | vertical-align: baseline;
167 | }
168 |
169 | sup {
170 | top: -0.5em;
171 | }
172 |
173 | sub {
174 | bottom: -0.25em;
175 | }
176 |
177 | /* Embedded content
178 | ========================================================================== */
179 |
180 | /**
181 | * Remove border when inside `a` element in IE 8/9/10.
182 | */
183 |
184 | img {
185 | border: 0;
186 | }
187 |
188 | /**
189 | * Correct overflow not hidden in IE 9/10/11.
190 | */
191 |
192 | svg:not(:root) {
193 | overflow: hidden;
194 | }
195 |
196 | /* Grouping content
197 | ========================================================================== */
198 |
199 | /**
200 | * Address margin not present in IE 8/9 and Safari.
201 | */
202 |
203 | figure {
204 | margin: 1em 40px;
205 | }
206 |
207 | /**
208 | * Address differences between Firefox and other browsers.
209 | */
210 |
211 | hr {
212 | -moz-box-sizing: content-box;
213 | box-sizing: content-box;
214 | height: 0;
215 | }
216 |
217 | /**
218 | * Contain overflow in all browsers.
219 | */
220 |
221 | pre {
222 | overflow: auto;
223 | }
224 |
225 | /**
226 | * Address odd `em`-unit font size rendering in all browsers.
227 | */
228 |
229 | code,
230 | kbd,
231 | pre,
232 | samp {
233 | font-family: monospace, monospace;
234 | font-size: 1em;
235 | }
236 |
237 | /* Forms
238 | ========================================================================== */
239 |
240 | /**
241 | * Known limitation: by default, Chrome and Safari on OS X allow very limited
242 | * styling of `select`, unless a `border` property is set.
243 | */
244 |
245 | /**
246 | * 1. Correct color not being inherited.
247 | * Known issue: affects color of disabled elements.
248 | * 2. Correct font properties not being inherited.
249 | * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
250 | */
251 |
252 | button,
253 | input,
254 | optgroup,
255 | select,
256 | textarea {
257 | color: inherit; /* 1 */
258 | font: inherit; /* 2 */
259 | margin: 0; /* 3 */
260 | }
261 |
262 | /**
263 | * Address `overflow` set to `hidden` in IE 8/9/10/11.
264 | */
265 |
266 | button {
267 | overflow: visible;
268 | }
269 |
270 | /**
271 | * Address inconsistent `text-transform` inheritance for `button` and `select`.
272 | * All other form control elements do not inherit `text-transform` values.
273 | * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
274 | * Correct `select` style inheritance in Firefox.
275 | */
276 |
277 | button,
278 | select {
279 | text-transform: none;
280 | }
281 |
282 | /**
283 | * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
284 | * and `video` controls.
285 | * 2. Correct inability to style clickable `input` types in iOS.
286 | * 3. Improve usability and consistency of cursor style between image-type
287 | * `input` and others.
288 | */
289 |
290 | button,
291 | html input[type="button"], /* 1 */
292 | input[type="reset"],
293 | input[type="submit"] {
294 | -webkit-appearance: button; /* 2 */
295 | cursor: pointer; /* 3 */
296 | }
297 |
298 | /**
299 | * Re-set default cursor for disabled elements.
300 | */
301 |
302 | button[disabled],
303 | html input[disabled] {
304 | cursor: default;
305 | }
306 |
307 | /**
308 | * Remove inner padding and border in Firefox 4+.
309 | */
310 |
311 | button::-moz-focus-inner,
312 | input::-moz-focus-inner {
313 | border: 0;
314 | padding: 0;
315 | }
316 |
317 | /**
318 | * Address Firefox 4+ setting `line-height` on `input` using `!important` in
319 | * the UA stylesheet.
320 | */
321 |
322 | input {
323 | line-height: normal;
324 | }
325 |
326 | /**
327 | * It's recommended that you don't attempt to style these elements.
328 | * Firefox's implementation doesn't respect box-sizing, padding, or width.
329 | *
330 | * 1. Address box sizing set to `content-box` in IE 8/9/10.
331 | * 2. Remove excess padding in IE 8/9/10.
332 | */
333 |
334 | input[type="checkbox"],
335 | input[type="radio"] {
336 | box-sizing: border-box; /* 1 */
337 | padding: 0; /* 2 */
338 | }
339 |
340 | /**
341 | * Fix the cursor style for Chrome's increment/decrement buttons. For certain
342 | * `font-size` values of the `input`, it causes the cursor style of the
343 | * decrement button to change from `default` to `text`.
344 | */
345 |
346 | input[type="number"]::-webkit-inner-spin-button,
347 | input[type="number"]::-webkit-outer-spin-button {
348 | height: auto;
349 | }
350 |
351 | /**
352 | * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
353 | * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
354 | * (include `-moz` to future-proof).
355 | */
356 |
357 | input[type="search"] {
358 | -webkit-appearance: textfield; /* 1 */
359 | -moz-box-sizing: content-box;
360 | -webkit-box-sizing: content-box; /* 2 */
361 | box-sizing: content-box;
362 | }
363 |
364 | /**
365 | * Remove inner padding and search cancel button in Safari and Chrome on OS X.
366 | * Safari (but not Chrome) clips the cancel button when the search input has
367 | * padding (and `textfield` appearance).
368 | */
369 |
370 | input[type="search"]::-webkit-search-cancel-button,
371 | input[type="search"]::-webkit-search-decoration {
372 | -webkit-appearance: none;
373 | }
374 |
375 | /**
376 | * Define consistent border, margin, and padding.
377 | */
378 |
379 | fieldset {
380 | border: 1px solid #c0c0c0;
381 | margin: 0 2px;
382 | padding: 0.35em 0.625em 0.75em;
383 | }
384 |
385 | /**
386 | * 1. Correct `color` not being inherited in IE 8/9/10/11.
387 | * 2. Remove padding so people aren't caught out if they zero out fieldsets.
388 | */
389 |
390 | legend {
391 | border: 0; /* 1 */
392 | padding: 0; /* 2 */
393 | }
394 |
395 | /**
396 | * Remove default vertical scrollbar in IE 8/9/10/11.
397 | */
398 |
399 | textarea {
400 | overflow: auto;
401 | }
402 |
403 | /**
404 | * Don't inherit the `font-weight` (applied by a rule above).
405 | * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
406 | */
407 |
408 | optgroup {
409 | font-weight: bold;
410 | }
411 |
412 | /* Tables
413 | ========================================================================== */
414 |
415 | /**
416 | * Remove most spacing between table cells.
417 | */
418 |
419 | table {
420 | border-collapse: collapse;
421 | border-spacing: 0;
422 | }
423 |
424 | td,
425 | th {
426 | padding: 0;
427 | }
428 |
--------------------------------------------------------------------------------
/app/assets/images/mapa-negro.svg:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------