Skip to content

Commit

Permalink
use %g, add magic comment, use %z
Browse files Browse the repository at this point in the history
  • Loading branch information
seki committed Jul 5, 2019
1 parent cf641d5 commit 8a84230
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/rwiki/footer.rhtml
Expand Up @@ -8,7 +8,7 @@
if pg.modified
%>
<a id="modified" name="modified"><%=_("last-modified:")%></a>
<span class="modified"><%= pg.modified.strftime( "%a, %d %b %Y %H:%M:%S %Z" )%> (<%=h modified(pg.modified)%>)</span>
<span class="modified"><%= pg.modified.strftime( "%a, %d %b %Y %H:%M:%S %z" )%> (<%=h modified(pg.modified)%>)</span>
<br />
<%
end
Expand Down
3 changes: 3 additions & 0 deletions lib/rwiki/story-item.erd
@@ -1,3 +1,4 @@
<%#-*- coding: utf-8 -*-%>
= <%= name %>

empty item
Expand All @@ -9,6 +10,8 @@ empty item
* サイン: ((<rwiki>))
* 状態: open
* 見積: 0 / 0
* テスト分類:
* テストレート:

== description

Expand Down
6 changes: 3 additions & 3 deletions lib/rwiki/story-plan.rhtml
Expand Up @@ -41,10 +41,10 @@
<ul>
<%
when :total
estimation = arg[0]
actual = arg[1]
estimation = sprintf("%g", arg[0]) rescue "0.0"
actual = sprintf("%g", arg[1]) rescue "0.0"
%>
<li>total [<%=h estimation %> / <%=h actual %>]</li>
<li>total [<%=h sprintf("%g / %g", estimation, actual) %>]</li>
</ul>
<%
when :card
Expand Down

0 comments on commit 8a84230

Please sign in to comment.