Browse Source

FIX code bug

tags/v1.0.0
Jasder 5 years ago
parent
commit
c85ad6444d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/views/repositories/_last_commit.json.jbuilder

+ 1
- 1
app/views/repositories/_last_commit.json.jbuilder View File

@@ -2,6 +2,6 @@ json.commit do
json.message entry['latest_commit']['message']
json.sha entry['latest_commit']['sha']
json.created_at render_format_time_with_unix(entry['latest_commit']['created_at'].to_i)
json.time_from_now time_from_now(created_at)
json.time_from_now time_from_now(render_format_time_with_unix(entry['latest_commit']['created_at'].to_i))
json.created_at_unix entry['latest_commit']['created_at']
end

Loading…
Cancel
Save