Skip to content

Commit

Permalink
Removed /visits urls.
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Reed committed Aug 31, 2011
1 parent f7d029e commit e38b19a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/pathways/server.rb
Expand Up @@ -77,7 +77,7 @@ def self.tabs
end end


get '/pages' do get '/pages' do
@pages = Pathways::Session.popular_pages(:filter => "controller_action") @pages = Pathways::Session.popular_pages
show :pages show :pages
end end


Expand Down
2 changes: 1 addition & 1 deletion lib/pathways/server/views/layout.erb
Expand Up @@ -24,7 +24,7 @@
</div> </div>


<div id="footer"> <div id="footer">
<p>Powered by <a href="http://github.com/defunkt/resque">Pathways</a></p> <p>Powered by <a href="https://rubygems.org/gems/pathways">Pathways</a></p>
</div> </div>


</body> </body>
Expand Down
2 changes: 1 addition & 1 deletion lib/pathways/server/views/sessions.erb
Expand Up @@ -4,6 +4,6 @@


<ul> <ul>
<% sessions.sort_by{|s|s.created_at}.each do | session | %> <% sessions.sort_by{|s|s.created_at}.each do | session | %>
<li><b><%= session.state %></b> <%= session.ip %> <a href="/sessions/<%= session.id %>/visits">Show Session</a> - <%=session.visits.count %> pages <%= "in #{session.visits.reject{|v|v.time_active.nil?}.sum(&:time_active)} seconds" if session.state == "closed" %></li> <li><b><%= session.state %></b> <%= session.ip %> <a href="/sessions/<%= session.id %>">Show Session</a> - <%=session.visits.count %> pages <%= "in #{session.visits.reject{|v|v.time_active.nil?}.sum(&:time_active)} seconds" if session.state == "closed" %></li>
<% end %> <% end %>
</ul> </ul>

0 comments on commit e38b19a

Please sign in to comment.