paginas 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/paginas/shared/keep +1 -0
- data/lib/paginas/version.rb +1 -1
- data/test/dummy/app/views/paginas/pages/_form.html.erb +30 -0
- data/test/dummy/app/views/paginas/pages/display.html.erb +2 -0
- data/test/dummy/app/views/paginas/pages/edit.html.erb +6 -0
- data/test/dummy/app/views/paginas/pages/featured.html.erb +5 -0
- data/test/dummy/app/views/paginas/pages/index.html.erb +29 -0
- data/test/dummy/app/views/paginas/pages/new.html.erb +5 -0
- data/test/dummy/app/views/paginas/pages/show.html.erb +8 -0
- metadata +16 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96edcbda95aafba9a1cf0786eb40b786b817c691
|
4
|
+
data.tar.gz: d4849bba7da1018755925c8c01f98e6ed44565c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6db5e9a51ac536614f9385e02ce955c1f9f4fed87dcc8d04547df05a128a62ddf96e8d41d4d2987b2f59e0a726e64ec3991e6b14297f6bf11c19d3e20794a837
|
7
|
+
data.tar.gz: 70dd132f1017766c47a45a0e82b569ba0269617cb5fdaa5e6302b48e676f1024eb60b3b6e3b9e059b096556950a5315f965cd867a23d01029380c89331f09631
|
@@ -0,0 +1 @@
|
|
1
|
+
keep this foler
|
data/lib/paginas/version.rb
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
<%= form_for(@page) do |f| %>
|
2
|
+
<% if @page.errors.any? %>
|
3
|
+
<div id="error_explanation">
|
4
|
+
<h2><%= pluralize(@page.errors.count, "error") %> prohibited this page from being saved:</h2>
|
5
|
+
|
6
|
+
<ul>
|
7
|
+
<% @page.errors.full_messages.each do |message| %>
|
8
|
+
<li><%= message %></li>
|
9
|
+
<% end %>
|
10
|
+
</ul>
|
11
|
+
</div>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<div class="field">
|
15
|
+
<%= f.label :title %><br>
|
16
|
+
<%= f.text_field :title %>
|
17
|
+
</div>
|
18
|
+
<div class="field">
|
19
|
+
<%= f.label :featured %><br>
|
20
|
+
<%= f.check_box :featured %>
|
21
|
+
</div>
|
22
|
+
<div class="field">
|
23
|
+
<%= f.label :text %><br>
|
24
|
+
<%= f.text_area :text, :class => "tinymce", :rows => 20, :cols => 80 %>
|
25
|
+
</div>
|
26
|
+
<%= tinymce %>
|
27
|
+
<div class="actions">
|
28
|
+
<%= f.submit %>
|
29
|
+
</div>
|
30
|
+
<% end %>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<p id="notice"><%= notice %></p>
|
2
|
+
|
3
|
+
<h3>Listing Pages</h3>
|
4
|
+
|
5
|
+
<table>
|
6
|
+
<thead>
|
7
|
+
<tr>
|
8
|
+
<th>Title</th>
|
9
|
+
<th>Featured</th>
|
10
|
+
<th colspan="3"></th>
|
11
|
+
</tr>
|
12
|
+
</thead>
|
13
|
+
|
14
|
+
<tbody>
|
15
|
+
<% @pages.each do |page| %>
|
16
|
+
<tr>
|
17
|
+
<td><%= page.title %></td>
|
18
|
+
<td><%= page.featured %></td>
|
19
|
+
<td><%= link_to 'Show', page %></td>
|
20
|
+
<td><%= link_to 'Edit', edit_page_path(page) %></td>
|
21
|
+
<td><%= link_to 'Destroy', page, method: :delete, data: { confirm: "Are you sure?" } %></td>
|
22
|
+
</tr>
|
23
|
+
<% end %>
|
24
|
+
</tbody>
|
25
|
+
</table>
|
26
|
+
|
27
|
+
<br>
|
28
|
+
|
29
|
+
<%= link_to 'New Page', new_page_path %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paginas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Roque
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- app/views/paginas/pages/index.html.erb
|
83
83
|
- app/views/paginas/pages/new.html.erb
|
84
84
|
- app/views/paginas/pages/show.html.erb
|
85
|
+
- app/views/paginas/shared/keep
|
85
86
|
- config/routes.rb
|
86
87
|
- db/migrate/20150212133316_create_paginas_pages.rb
|
87
88
|
- lib/generators/paginas/views_generator.rb
|
@@ -97,6 +98,13 @@ files:
|
|
97
98
|
- test/dummy/app/controllers/application_controller.rb
|
98
99
|
- test/dummy/app/helpers/application_helper.rb
|
99
100
|
- test/dummy/app/views/layouts/application.html.erb
|
101
|
+
- test/dummy/app/views/paginas/pages/_form.html.erb
|
102
|
+
- test/dummy/app/views/paginas/pages/display.html.erb
|
103
|
+
- test/dummy/app/views/paginas/pages/edit.html.erb
|
104
|
+
- test/dummy/app/views/paginas/pages/featured.html.erb
|
105
|
+
- test/dummy/app/views/paginas/pages/index.html.erb
|
106
|
+
- test/dummy/app/views/paginas/pages/new.html.erb
|
107
|
+
- test/dummy/app/views/paginas/pages/show.html.erb
|
100
108
|
- test/dummy/bin/bundle
|
101
109
|
- test/dummy/bin/rails
|
102
110
|
- test/dummy/bin/rake
|
@@ -248,6 +256,13 @@ test_files:
|
|
248
256
|
- test/dummy/tmp/pids/server.pid
|
249
257
|
- test/dummy/app/helpers/application_helper.rb
|
250
258
|
- test/dummy/app/controllers/application_controller.rb
|
259
|
+
- test/dummy/app/views/paginas/pages/display.html.erb
|
260
|
+
- test/dummy/app/views/paginas/pages/index.html.erb
|
261
|
+
- test/dummy/app/views/paginas/pages/new.html.erb
|
262
|
+
- test/dummy/app/views/paginas/pages/edit.html.erb
|
263
|
+
- test/dummy/app/views/paginas/pages/show.html.erb
|
264
|
+
- test/dummy/app/views/paginas/pages/_form.html.erb
|
265
|
+
- test/dummy/app/views/paginas/pages/featured.html.erb
|
251
266
|
- test/dummy/app/views/layouts/application.html.erb
|
252
267
|
- test/dummy/app/assets/stylesheets/application.css
|
253
268
|
- test/dummy/app/assets/javascripts/application.js
|