crowdblog 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -5
- data/app/assets/javascripts/crowdblog/templates/posts/attachment.jst.eco.slim +1 -0
- data/app/assets/javascripts/crowdblog/templates/posts/edit.jst.eco.slim +33 -0
- data/app/assets/javascripts/crowdblog/templates/posts/index.jst.eco.slim +14 -0
- data/app/assets/javascripts/crowdblog/templates/posts/post.jst.eco.slim +14 -0
- data/crowdblog.gemspec +3 -3
- data/lib/crowdblog/version.rb +2 -2
- metadata +58 -67
- data/app/assets/javascripts/crowdblog/templates/posts/attachment.jst.eco +0 -1
- data/app/assets/javascripts/crowdblog/templates/posts/edit.jst.eco +0 -38
- data/app/assets/javascripts/crowdblog/templates/posts/index.jst.eco +0 -17
- data/app/assets/javascripts/crowdblog/templates/posts/post.jst.eco +0 -27
data/Gemfile.lock
CHANGED
@@ -9,7 +9,7 @@ GIT
|
|
9
9
|
PATH
|
10
10
|
remote: .
|
11
11
|
specs:
|
12
|
-
crowdblog (0.0.
|
12
|
+
crowdblog (0.0.5)
|
13
13
|
backbone-rails
|
14
14
|
carrierwave
|
15
15
|
devise
|
@@ -65,9 +65,6 @@ GEM
|
|
65
65
|
rack-test (>= 0.5.4)
|
66
66
|
selenium-webdriver (~> 2.0)
|
67
67
|
xpath (~> 0.1.4)
|
68
|
-
capybara-webkit (0.10.0)
|
69
|
-
capybara (>= 1.0.0, < 1.2)
|
70
|
-
json
|
71
68
|
carrierwave (0.5.8)
|
72
69
|
activesupport (~> 3.0)
|
73
70
|
childprocess (0.3.1)
|
@@ -246,7 +243,6 @@ PLATFORMS
|
|
246
243
|
|
247
244
|
DEPENDENCIES
|
248
245
|
backbone-rails
|
249
|
-
capybara-webkit
|
250
246
|
carrierwave
|
251
247
|
coffee-rails
|
252
248
|
crowdblog!
|
@@ -0,0 +1 @@
|
|
1
|
+
.attachment <%= @url %>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
h2 <%= (if @isNew then 'New' else 'Edit') %> Post
|
2
|
+
|
3
|
+
= form_tag '/', class: 'form-horizontal' do
|
4
|
+
fieldset
|
5
|
+
.control-group.title
|
6
|
+
= label_tag 'post_title', 'Title', class: 'control-label'
|
7
|
+
.controls
|
8
|
+
= text_field_tag 'post_title', "<%= @post.title %>".html_safe, class: 'input-xlarge span7'
|
9
|
+
span.help-inline.title
|
10
|
+
|
11
|
+
.control-group.body
|
12
|
+
= label_tag 'post_body', 'Body', class: 'control-label'
|
13
|
+
.controls
|
14
|
+
= text_area_tag 'post_body', "<%= @post.body %>".html_safe, class: 'span9', rows: 30
|
15
|
+
span.help-inline= link_to 'Markdown syntax', 'http://daringfireball.net/projects/markdown/syntax', target: '_BLANK'
|
16
|
+
|
17
|
+
| <% unless @isNew: %>
|
18
|
+
#attachments.row
|
19
|
+
h2 Attachments
|
20
|
+
.span8.attachment-list
|
21
|
+
| <% for asset in @post.assets: %>
|
22
|
+
.attachment <%= asset.attachment.url %>
|
23
|
+
| <% end %>
|
24
|
+
.span4
|
25
|
+
#uploader
|
26
|
+
|
27
|
+
| <% end %>
|
28
|
+
.form-actions
|
29
|
+
.row
|
30
|
+
.span1
|
31
|
+
button.btn.btn-primary.update Save
|
32
|
+
.span1
|
33
|
+
button.btn.btn-danger.cancel Cancel
|
@@ -0,0 +1,14 @@
|
|
1
|
+
td
|
2
|
+
a href="/preview/<%= @post.id %>" target="_BLANK" <%= @post.title %>
|
3
|
+
td <%= @post.author_email %>
|
4
|
+
td.span2 <%= @post.published_at %>
|
5
|
+
td.span1
|
6
|
+
| <% if @publisher: %>
|
7
|
+
a.btn.publish.span1 href="#" Publish
|
8
|
+
| <% end %>
|
9
|
+
td.span1
|
10
|
+
a.btn.review.span1 href="#" Review
|
11
|
+
td.span1
|
12
|
+
a.btn.delete.span1 href="#" Delete
|
13
|
+
td.span1
|
14
|
+
a.btn.edit.span1 href="#edit/<%= @post.id %>" Edit
|
data/crowdblog.gemspec
CHANGED
@@ -7,8 +7,8 @@ require 'crowdblog/version'
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = 'crowdblog'
|
9
9
|
s.version = Crowdblog::VERSION
|
10
|
-
s.authors = ['Crowd Interactive', 'David Padilla', 'Chalo Fernandez', 'Ignacio Galindo']
|
11
|
-
s.email = %w(opensource@crowdint.com david@crowdint.com chalofa@crowdint.com ignacio@crowdint.com)
|
10
|
+
s.authors = ['Crowd Interactive', 'David Padilla', 'Chalo Fernandez', 'Ignacio Galindo', 'Nora Alvarado']
|
11
|
+
s.email = %w(opensource@crowdint.com david@crowdint.com chalofa@crowdint.com ignacio@crowdint.com nora@crowdint.com)
|
12
12
|
s.homepage = 'http://github.com/crowdint/crowdblog'
|
13
13
|
s.summary = 'CrowdBlog base functionality and backend'
|
14
14
|
s.description = 'This mountable engine has the basic functionality to manage Posts'
|
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
|
|
34
34
|
s.add_dependency 'slim-rails'
|
35
35
|
s.add_dependency 'state_machine'
|
36
36
|
|
37
|
-
s.add_development_dependency 'capybara-webkit'
|
37
|
+
#s.add_development_dependency 'capybara-webkit'
|
38
38
|
s.add_development_dependency 'cucumber-ajaxer'
|
39
39
|
s.add_development_dependency 'cucumber-rails'
|
40
40
|
s.add_development_dependency 'database_cleaner'
|
data/lib/crowdblog/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Crowdblog
|
2
|
-
VERSION = '0.0.
|
3
|
-
end
|
2
|
+
VERSION = '0.0.5'
|
3
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crowdblog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,14 +9,15 @@ authors:
|
|
9
9
|
- David Padilla
|
10
10
|
- Chalo Fernandez
|
11
11
|
- Ignacio Galindo
|
12
|
+
- Nora Alvarado
|
12
13
|
autorequire:
|
13
14
|
bindir: bin
|
14
15
|
cert_chain: []
|
15
|
-
date: 2012-03-
|
16
|
+
date: 2012-03-12 00:00:00.000000000 Z
|
16
17
|
dependencies:
|
17
18
|
- !ruby/object:Gem::Dependency
|
18
19
|
name: rails
|
19
|
-
requirement: &
|
20
|
+
requirement: &70294740836440 !ruby/object:Gem::Requirement
|
20
21
|
none: false
|
21
22
|
requirements:
|
22
23
|
- - ~>
|
@@ -24,10 +25,10 @@ dependencies:
|
|
24
25
|
version: '3.2'
|
25
26
|
type: :runtime
|
26
27
|
prerelease: false
|
27
|
-
version_requirements: *
|
28
|
+
version_requirements: *70294740836440
|
28
29
|
- !ruby/object:Gem::Dependency
|
29
30
|
name: jquery-rails
|
30
|
-
requirement: &
|
31
|
+
requirement: &70294740835800 !ruby/object:Gem::Requirement
|
31
32
|
none: false
|
32
33
|
requirements:
|
33
34
|
- - ! '>='
|
@@ -35,10 +36,10 @@ dependencies:
|
|
35
36
|
version: '0'
|
36
37
|
type: :runtime
|
37
38
|
prerelease: false
|
38
|
-
version_requirements: *
|
39
|
+
version_requirements: *70294740835800
|
39
40
|
- !ruby/object:Gem::Dependency
|
40
41
|
name: backbone-rails
|
41
|
-
requirement: &
|
42
|
+
requirement: &70294740835300 !ruby/object:Gem::Requirement
|
42
43
|
none: false
|
43
44
|
requirements:
|
44
45
|
- - ! '>='
|
@@ -46,10 +47,10 @@ dependencies:
|
|
46
47
|
version: '0'
|
47
48
|
type: :runtime
|
48
49
|
prerelease: false
|
49
|
-
version_requirements: *
|
50
|
+
version_requirements: *70294740835300
|
50
51
|
- !ruby/object:Gem::Dependency
|
51
52
|
name: carrierwave
|
52
|
-
requirement: &
|
53
|
+
requirement: &70294740850860 !ruby/object:Gem::Requirement
|
53
54
|
none: false
|
54
55
|
requirements:
|
55
56
|
- - ! '>='
|
@@ -57,10 +58,10 @@ dependencies:
|
|
57
58
|
version: '0'
|
58
59
|
type: :runtime
|
59
60
|
prerelease: false
|
60
|
-
version_requirements: *
|
61
|
+
version_requirements: *70294740850860
|
61
62
|
- !ruby/object:Gem::Dependency
|
62
63
|
name: devise
|
63
|
-
requirement: &
|
64
|
+
requirement: &70294740849880 !ruby/object:Gem::Requirement
|
64
65
|
none: false
|
65
66
|
requirements:
|
66
67
|
- - ! '>='
|
@@ -68,10 +69,10 @@ dependencies:
|
|
68
69
|
version: '0'
|
69
70
|
type: :runtime
|
70
71
|
prerelease: false
|
71
|
-
version_requirements: *
|
72
|
+
version_requirements: *70294740849880
|
72
73
|
- !ruby/object:Gem::Dependency
|
73
74
|
name: eco
|
74
|
-
requirement: &
|
75
|
+
requirement: &70294740847440 !ruby/object:Gem::Requirement
|
75
76
|
none: false
|
76
77
|
requirements:
|
77
78
|
- - ! '>='
|
@@ -79,10 +80,10 @@ dependencies:
|
|
79
80
|
version: '0'
|
80
81
|
type: :runtime
|
81
82
|
prerelease: false
|
82
|
-
version_requirements: *
|
83
|
+
version_requirements: *70294740847440
|
83
84
|
- !ruby/object:Gem::Dependency
|
84
85
|
name: gravtastic
|
85
|
-
requirement: &
|
86
|
+
requirement: &70294740846740 !ruby/object:Gem::Requirement
|
86
87
|
none: false
|
87
88
|
requirements:
|
88
89
|
- - ! '>='
|
@@ -90,10 +91,10 @@ dependencies:
|
|
90
91
|
version: '0'
|
91
92
|
type: :runtime
|
92
93
|
prerelease: false
|
93
|
-
version_requirements: *
|
94
|
+
version_requirements: *70294740846740
|
94
95
|
- !ruby/object:Gem::Dependency
|
95
96
|
name: less-rails-bootstrap
|
96
|
-
requirement: &
|
97
|
+
requirement: &70294740846140 !ruby/object:Gem::Requirement
|
97
98
|
none: false
|
98
99
|
requirements:
|
99
100
|
- - ! '>='
|
@@ -101,10 +102,10 @@ dependencies:
|
|
101
102
|
version: '0'
|
102
103
|
type: :runtime
|
103
104
|
prerelease: false
|
104
|
-
version_requirements: *
|
105
|
+
version_requirements: *70294740846140
|
105
106
|
- !ruby/object:Gem::Dependency
|
106
107
|
name: redcarpet
|
107
|
-
requirement: &
|
108
|
+
requirement: &70294740845420 !ruby/object:Gem::Requirement
|
108
109
|
none: false
|
109
110
|
requirements:
|
110
111
|
- - ! '>='
|
@@ -112,10 +113,10 @@ dependencies:
|
|
112
113
|
version: '0'
|
113
114
|
type: :runtime
|
114
115
|
prerelease: false
|
115
|
-
version_requirements: *
|
116
|
+
version_requirements: *70294740845420
|
116
117
|
- !ruby/object:Gem::Dependency
|
117
118
|
name: slim_assets
|
118
|
-
requirement: &
|
119
|
+
requirement: &70294740844880 !ruby/object:Gem::Requirement
|
119
120
|
none: false
|
120
121
|
requirements:
|
121
122
|
- - ! '>='
|
@@ -123,10 +124,10 @@ dependencies:
|
|
123
124
|
version: '0'
|
124
125
|
type: :runtime
|
125
126
|
prerelease: false
|
126
|
-
version_requirements: *
|
127
|
+
version_requirements: *70294740844880
|
127
128
|
- !ruby/object:Gem::Dependency
|
128
129
|
name: slim-rails
|
129
|
-
requirement: &
|
130
|
+
requirement: &70294740844360 !ruby/object:Gem::Requirement
|
130
131
|
none: false
|
131
132
|
requirements:
|
132
133
|
- - ! '>='
|
@@ -134,10 +135,10 @@ dependencies:
|
|
134
135
|
version: '0'
|
135
136
|
type: :runtime
|
136
137
|
prerelease: false
|
137
|
-
version_requirements: *
|
138
|
+
version_requirements: *70294740844360
|
138
139
|
- !ruby/object:Gem::Dependency
|
139
140
|
name: state_machine
|
140
|
-
requirement: &
|
141
|
+
requirement: &70294740843880 !ruby/object:Gem::Requirement
|
141
142
|
none: false
|
142
143
|
requirements:
|
143
144
|
- - ! '>='
|
@@ -145,21 +146,10 @@ dependencies:
|
|
145
146
|
version: '0'
|
146
147
|
type: :runtime
|
147
148
|
prerelease: false
|
148
|
-
version_requirements: *
|
149
|
-
- !ruby/object:Gem::Dependency
|
150
|
-
name: capybara-webkit
|
151
|
-
requirement: &70203556771220 !ruby/object:Gem::Requirement
|
152
|
-
none: false
|
153
|
-
requirements:
|
154
|
-
- - ! '>='
|
155
|
-
- !ruby/object:Gem::Version
|
156
|
-
version: '0'
|
157
|
-
type: :development
|
158
|
-
prerelease: false
|
159
|
-
version_requirements: *70203556771220
|
149
|
+
version_requirements: *70294740843880
|
160
150
|
- !ruby/object:Gem::Dependency
|
161
151
|
name: cucumber-ajaxer
|
162
|
-
requirement: &
|
152
|
+
requirement: &70294740843340 !ruby/object:Gem::Requirement
|
163
153
|
none: false
|
164
154
|
requirements:
|
165
155
|
- - ! '>='
|
@@ -167,10 +157,10 @@ dependencies:
|
|
167
157
|
version: '0'
|
168
158
|
type: :development
|
169
159
|
prerelease: false
|
170
|
-
version_requirements: *
|
160
|
+
version_requirements: *70294740843340
|
171
161
|
- !ruby/object:Gem::Dependency
|
172
162
|
name: cucumber-rails
|
173
|
-
requirement: &
|
163
|
+
requirement: &70294740871100 !ruby/object:Gem::Requirement
|
174
164
|
none: false
|
175
165
|
requirements:
|
176
166
|
- - ! '>='
|
@@ -178,10 +168,10 @@ dependencies:
|
|
178
168
|
version: '0'
|
179
169
|
type: :development
|
180
170
|
prerelease: false
|
181
|
-
version_requirements: *
|
171
|
+
version_requirements: *70294740871100
|
182
172
|
- !ruby/object:Gem::Dependency
|
183
173
|
name: database_cleaner
|
184
|
-
requirement: &
|
174
|
+
requirement: &70294740869920 !ruby/object:Gem::Requirement
|
185
175
|
none: false
|
186
176
|
requirements:
|
187
177
|
- - ! '>='
|
@@ -189,10 +179,10 @@ dependencies:
|
|
189
179
|
version: '0'
|
190
180
|
type: :development
|
191
181
|
prerelease: false
|
192
|
-
version_requirements: *
|
182
|
+
version_requirements: *70294740869920
|
193
183
|
- !ruby/object:Gem::Dependency
|
194
184
|
name: fabrication
|
195
|
-
requirement: &
|
185
|
+
requirement: &70294740866420 !ruby/object:Gem::Requirement
|
196
186
|
none: false
|
197
187
|
requirements:
|
198
188
|
- - ! '>='
|
@@ -200,10 +190,10 @@ dependencies:
|
|
200
190
|
version: '0'
|
201
191
|
type: :development
|
202
192
|
prerelease: false
|
203
|
-
version_requirements: *
|
193
|
+
version_requirements: *70294740866420
|
204
194
|
- !ruby/object:Gem::Dependency
|
205
195
|
name: faker
|
206
|
-
requirement: &
|
196
|
+
requirement: &70294740865180 !ruby/object:Gem::Requirement
|
207
197
|
none: false
|
208
198
|
requirements:
|
209
199
|
- - ! '>='
|
@@ -211,10 +201,10 @@ dependencies:
|
|
211
201
|
version: '0'
|
212
202
|
type: :development
|
213
203
|
prerelease: false
|
214
|
-
version_requirements: *
|
204
|
+
version_requirements: *70294740865180
|
215
205
|
- !ruby/object:Gem::Dependency
|
216
206
|
name: fuubar
|
217
|
-
requirement: &
|
207
|
+
requirement: &70294740864420 !ruby/object:Gem::Requirement
|
218
208
|
none: false
|
219
209
|
requirements:
|
220
210
|
- - ! '>='
|
@@ -222,10 +212,10 @@ dependencies:
|
|
222
212
|
version: '0'
|
223
213
|
type: :development
|
224
214
|
prerelease: false
|
225
|
-
version_requirements: *
|
215
|
+
version_requirements: *70294740864420
|
226
216
|
- !ruby/object:Gem::Dependency
|
227
217
|
name: fuubar-cucumber
|
228
|
-
requirement: &
|
218
|
+
requirement: &70294740896460 !ruby/object:Gem::Requirement
|
229
219
|
none: false
|
230
220
|
requirements:
|
231
221
|
- - ! '>='
|
@@ -233,10 +223,10 @@ dependencies:
|
|
233
223
|
version: '0'
|
234
224
|
type: :development
|
235
225
|
prerelease: false
|
236
|
-
version_requirements: *
|
226
|
+
version_requirements: *70294740896460
|
237
227
|
- !ruby/object:Gem::Dependency
|
238
228
|
name: headless
|
239
|
-
requirement: &
|
229
|
+
requirement: &70294740896020 !ruby/object:Gem::Requirement
|
240
230
|
none: false
|
241
231
|
requirements:
|
242
232
|
- - ! '>='
|
@@ -244,10 +234,10 @@ dependencies:
|
|
244
234
|
version: '0'
|
245
235
|
type: :development
|
246
236
|
prerelease: false
|
247
|
-
version_requirements: *
|
237
|
+
version_requirements: *70294740896020
|
248
238
|
- !ruby/object:Gem::Dependency
|
249
239
|
name: rspec-rails
|
250
|
-
requirement: &
|
240
|
+
requirement: &70294740895420 !ruby/object:Gem::Requirement
|
251
241
|
none: false
|
252
242
|
requirements:
|
253
243
|
- - ! '>='
|
@@ -255,10 +245,10 @@ dependencies:
|
|
255
245
|
version: '0'
|
256
246
|
type: :development
|
257
247
|
prerelease: false
|
258
|
-
version_requirements: *
|
248
|
+
version_requirements: *70294740895420
|
259
249
|
- !ruby/object:Gem::Dependency
|
260
250
|
name: simplecov
|
261
|
-
requirement: &
|
251
|
+
requirement: &70294740894960 !ruby/object:Gem::Requirement
|
262
252
|
none: false
|
263
253
|
requirements:
|
264
254
|
- - ! '>='
|
@@ -266,10 +256,10 @@ dependencies:
|
|
266
256
|
version: '0'
|
267
257
|
type: :development
|
268
258
|
prerelease: false
|
269
|
-
version_requirements: *
|
259
|
+
version_requirements: *70294740894960
|
270
260
|
- !ruby/object:Gem::Dependency
|
271
261
|
name: simplecov-rcov-text
|
272
|
-
requirement: &
|
262
|
+
requirement: &70294740894480 !ruby/object:Gem::Requirement
|
273
263
|
none: false
|
274
264
|
requirements:
|
275
265
|
- - ! '>='
|
@@ -277,10 +267,10 @@ dependencies:
|
|
277
267
|
version: '0'
|
278
268
|
type: :development
|
279
269
|
prerelease: false
|
280
|
-
version_requirements: *
|
270
|
+
version_requirements: *70294740894480
|
281
271
|
- !ruby/object:Gem::Dependency
|
282
272
|
name: sqlite3
|
283
|
-
requirement: &
|
273
|
+
requirement: &70294740893980 !ruby/object:Gem::Requirement
|
284
274
|
none: false
|
285
275
|
requirements:
|
286
276
|
- - ! '>='
|
@@ -288,13 +278,14 @@ dependencies:
|
|
288
278
|
version: '0'
|
289
279
|
type: :development
|
290
280
|
prerelease: false
|
291
|
-
version_requirements: *
|
281
|
+
version_requirements: *70294740893980
|
292
282
|
description: This mountable engine has the basic functionality to manage Posts
|
293
283
|
email:
|
294
284
|
- opensource@crowdint.com
|
295
285
|
- david@crowdint.com
|
296
286
|
- chalofa@crowdint.com
|
297
287
|
- ignacio@crowdint.com
|
288
|
+
- nora@crowdint.com
|
298
289
|
executables: []
|
299
290
|
extensions: []
|
300
291
|
extra_rdoc_files: []
|
@@ -314,10 +305,10 @@ files:
|
|
314
305
|
- app/assets/javascripts/crowdblog.js
|
315
306
|
- app/assets/javascripts/crowdblog/models/post.js.coffee
|
316
307
|
- app/assets/javascripts/crowdblog/posts_main.js.coffee
|
317
|
-
- app/assets/javascripts/crowdblog/templates/posts/attachment.jst.eco
|
318
|
-
- app/assets/javascripts/crowdblog/templates/posts/edit.jst.eco
|
319
|
-
- app/assets/javascripts/crowdblog/templates/posts/index.jst.eco
|
320
|
-
- app/assets/javascripts/crowdblog/templates/posts/post.jst.eco
|
308
|
+
- app/assets/javascripts/crowdblog/templates/posts/attachment.jst.eco.slim
|
309
|
+
- app/assets/javascripts/crowdblog/templates/posts/edit.jst.eco.slim
|
310
|
+
- app/assets/javascripts/crowdblog/templates/posts/index.jst.eco.slim
|
311
|
+
- app/assets/javascripts/crowdblog/templates/posts/post.jst.eco.slim
|
321
312
|
- app/assets/javascripts/crowdblog/views/posts/attachment_view.js.coffee
|
322
313
|
- app/assets/javascripts/crowdblog/views/posts/edit_post_view.js.coffee
|
323
314
|
- app/assets/javascripts/crowdblog/views/posts/index.js.coffee
|
@@ -429,7 +420,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
429
420
|
version: '0'
|
430
421
|
segments:
|
431
422
|
- 0
|
432
|
-
hash:
|
423
|
+
hash: 3601896564428619689
|
433
424
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
434
425
|
none: false
|
435
426
|
requirements:
|
@@ -438,7 +429,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
438
429
|
version: '0'
|
439
430
|
segments:
|
440
431
|
- 0
|
441
|
-
hash:
|
432
|
+
hash: 3601896564428619689
|
442
433
|
requirements: []
|
443
434
|
rubyforge_project:
|
444
435
|
rubygems_version: 1.8.10
|
@@ -1 +0,0 @@
|
|
1
|
-
<div class="attachment"><%= @url %></div>
|
@@ -1,38 +0,0 @@
|
|
1
|
-
<h2><%= if @isNew then 'New' else 'Edit' %> Post</h2>
|
2
|
-
|
3
|
-
<form accept-charset="UTF-8" action="/" class="form-horizontal" method="post">
|
4
|
-
<fieldset>
|
5
|
-
<div class="control-group title">
|
6
|
-
<label class="control-label" for="post_title">Title</label>
|
7
|
-
<div class="controls">
|
8
|
-
<input class="input-xlarge span7" id="post_title" name="post_title" type="text" value="<%= @post.title %>">
|
9
|
-
<span class="help-inline title"></span>
|
10
|
-
</div>
|
11
|
-
</div>
|
12
|
-
|
13
|
-
<div class="control-group body">
|
14
|
-
<label class="control-label" for="post_body">Body</label>
|
15
|
-
<div class="controls">
|
16
|
-
<textarea class="span9" id="post_body" name="post_body" rows="30"><%= @post.body %></textarea>
|
17
|
-
<span class="help-inline">
|
18
|
-
<a href="http://daringfireball.net/projects/markdown/syntax" target="_blank">Markdown syntax</a>
|
19
|
-
</span>
|
20
|
-
</div>
|
21
|
-
</div>
|
22
|
-
|
23
|
-
<div class="form-actions">
|
24
|
-
<div class="row">
|
25
|
-
<div class="span1">
|
26
|
-
<button class="btn btn-primary update">Save</button>
|
27
|
-
</div>
|
28
|
-
<div class="span1">
|
29
|
-
<button class="btn btn-danger cancel">Cancel</button>
|
30
|
-
</div>
|
31
|
-
</div>
|
32
|
-
</div>
|
33
|
-
</fieldset>
|
34
|
-
|
35
|
-
<div style="margin:0;padding:0;display:inline">
|
36
|
-
<input name="utf8" type="hidden" value="✓">
|
37
|
-
</div>
|
38
|
-
</form>
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<a href="#new" class="btn btn-primary new-post">New Post</a>
|
2
|
-
|
3
|
-
<div class="posts">
|
4
|
-
<table class="table table-striped">
|
5
|
-
<thead>
|
6
|
-
<tr>
|
7
|
-
<th>Title</th>
|
8
|
-
<th>Author</th>
|
9
|
-
<th>Published at</th>
|
10
|
-
<th></th>
|
11
|
-
<th></th>
|
12
|
-
<th></th>
|
13
|
-
</tr>
|
14
|
-
</thead>
|
15
|
-
<tbody></tbody>
|
16
|
-
</table>
|
17
|
-
</div>
|
@@ -1,27 +0,0 @@
|
|
1
|
-
<td>
|
2
|
-
<a href="/preview/<%= @post.id %>" target="_blank">
|
3
|
-
<%= @post.title %>
|
4
|
-
</a>
|
5
|
-
</td>
|
6
|
-
|
7
|
-
<td>
|
8
|
-
<%= @post.author_email %>
|
9
|
-
</td>
|
10
|
-
|
11
|
-
<td class="span2">
|
12
|
-
<%= @post.published_at %>
|
13
|
-
</td>
|
14
|
-
|
15
|
-
<td class="span1">
|
16
|
-
<% if @publisher: %>
|
17
|
-
<a href="#" class="publish btn span1">Publish</a>
|
18
|
-
<% end %>
|
19
|
-
</td>
|
20
|
-
|
21
|
-
<td class="span1">
|
22
|
-
<a href="#edit/<%= @post.id %>" class="edit btn span1">Edit</a>
|
23
|
-
</td>
|
24
|
-
|
25
|
-
<td class="span1">
|
26
|
-
<a href="#" class="delete btn span1">Delete</a>
|
27
|
-
</td>
|