Skip to content

Commit

Permalink
remove time ago in words
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelminter committed Apr 18, 2013
1 parent b869025 commit cfbe406
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 32 deletions.
1 change: 0 additions & 1 deletion .idea/fracture-url.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 36 additions & 26 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ gem 'heroku'
gem 'datamapper'
gem 'rack-flash'
gem 'pusher'
gem "time_ago_in_words"
# gem "time_ago_in_words"
gem 'ps'
gem 'newrelic_rpm'
gem 'useragent'
Expand Down
2 changes: 0 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ GEM
sqlite3 (>= 1.3.3)
stringex (1.2.1)
tilt (1.2.2)
time_ago_in_words (0.1.0)
useragent (0.4.10)
uuidtools (2.1.2)

Expand All @@ -123,5 +122,4 @@ DEPENDENCIES
rspec
sinatra
sqlite3-ruby
time_ago_in_words
useragent
2 changes: 1 addition & 1 deletion app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require 'rdiscount'
require './config/pusher_credentials' if File.exists?('./config/pusher_credentials.rb')
require 'active_support'
require 'time_ago_in_words'
# require 'time_ago_in_words'
require 'json'
require './config/database'
require 'useragent'
Expand Down
2 changes: 1 addition & 1 deletion views/index.erb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<tr class="<%= cycle %>">
<td><a href="<%= f.url %>" target="_blank" rel="nofollow"><%= f.url.length > 40 ? "#{f.url[0..40]}..." : f.url %></a></td>
<td><a href="/<%= f.encoded_uri %>" target="_blank" rel="nofollow">http://fracture.it/<%= f.encoded_uri %></a></td>
<td style="text-align:right;"><%= f.created_at.to_time.ago_in_words %></td>
<td style="text-align:right;"><%= f.created_at.to_time.strftime("%Y-%m-%d") %></td>
</tr>
<% end %>
</tbody>
Expand Down

0 comments on commit cfbe406

Please sign in to comment.