removed showcard routes, html.erb, and controller entries/files since it's back in javascript

This commit is contained in:
Devin Howard 2013-01-02 21:01:56 -05:00
parent 84c8494f2b
commit 50dd586fbe
3 changed files with 0 additions and 41 deletions

View file

@ -46,16 +46,6 @@ class TopicsController < ApplicationController
end
end
# GET showcard/:id
def showcard
@user = current_user
@topic = Topic.find(params[:id]).authorize_to_show(@user)
respond_to do |format|
format.html { respond_with(@topic, @user) }
end
end
# POST topics
def create

View file

@ -1,29 +0,0 @@
<div class="showcard topic_<%= @topic.id %>">
<div class="CardOnGraph" title="Click to Hide" id="topic_' + node.id + '">
<p class="type">
<%= @topic.metacode.name %>
</p>
<img alt="<%= @topic.metacode.name %>"
src="/assets/<%= @topic.metacode.name %>.png"
class="icon" height="50" width="50" />
<div class="scroll">
<a href="/topics/<%=@topic.id%>" class="title">
<%= @topic.name %>
</a>
<div class="contributor">
Added by:
<a href="/users/<%= @user.id %>">
<%= @user.name %>
</a>
</div>
<div class="desc">
<p>
<%= @topic.desc %>
</p>
</div>
</div><!-- div.scroll -->
<a href="<%= @topic.link %>" class="link" target="_blank">
<%= @topic.link %>
</a>
</div>
</div>

View file

@ -10,8 +10,6 @@ ISSAD::Application.routes.draw do
match 'maps/:id/savelayout', to: 'maps#savelayout', via: :put, as: :savelayout
match 'showcard/:id', to: 'items#showcard', via: :get, as: :showcard
resource :session
resources :topics do