removed showcard routes, html.erb, and controller entries/files since it's back in javascript
This commit is contained in:
parent
84c8494f2b
commit
50dd586fbe
3 changed files with 0 additions and 41 deletions
|
@ -46,16 +46,6 @@ class TopicsController < ApplicationController
|
||||||
end
|
end
|
||||||
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
|
# POST topics
|
||||||
def create
|
def create
|
||||||
|
|
||||||
|
|
|
@ -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>
|
|
|
@ -10,8 +10,6 @@ ISSAD::Application.routes.draw do
|
||||||
|
|
||||||
match 'maps/:id/savelayout', to: 'maps#savelayout', via: :put, as: :savelayout
|
match 'maps/:id/savelayout', to: 'maps#savelayout', via: :put, as: :savelayout
|
||||||
|
|
||||||
match 'showcard/:id', to: 'items#showcard', via: :get, as: :showcard
|
|
||||||
|
|
||||||
resource :session
|
resource :session
|
||||||
|
|
||||||
resources :topics do
|
resources :topics do
|
||||||
|
|
Loading…
Reference in a new issue