octodmin 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/app/assets/javascripts/components/posts.js.cjsx +7 -1
- data/lib/octodmin/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10b2800db6a54cca156540343ef860089a711f37
|
4
|
+
data.tar.gz: 22917ffcde8aa8ea2ffda0b79c6e9c3e2f48ab74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d41e42b41e3fcccb03b929aced0f9ef41705318d509ebf9c93102c638a0937aad5cb2717eb4fe1c569ab1ca0169cac1385d39f3fba592df22edea00e1eb170b
|
7
|
+
data.tar.gz: 480c5d112acc4a03813da5a50fbd40772b4db4b8d2cce64b0289345242f3c14cc4ee16508055847caa57fef7cc31525e19cc104610043c6db66544d92af89590
|
data/CHANGELOG.md
CHANGED
@@ -118,6 +118,12 @@
|
|
118
118
|
else
|
119
119
|
"default"
|
120
120
|
|
121
|
+
isoDate: ->
|
122
|
+
try
|
123
|
+
(new Date(@props.post.date.replace(/-/g, "/"))).toISOString()
|
124
|
+
catch e
|
125
|
+
null
|
126
|
+
|
121
127
|
handleEdit: ->
|
122
128
|
@transitionTo("post_edit", post_id: @props.post.identifier)
|
123
129
|
|
@@ -165,7 +171,7 @@
|
|
165
171
|
<div className="panel-heading clearfix">
|
166
172
|
<h3 className="panel-title pull-left">{@props.post.title}</h3>
|
167
173
|
<div className="pull-right">
|
168
|
-
{
|
174
|
+
{if @isoDate() then moment(@isoDate()).format("LLL") else ""}
|
169
175
|
</div>
|
170
176
|
</div>
|
171
177
|
<div className="panel-body">
|
data/lib/octodmin/version.rb
CHANGED