<%=link_to app.name, edit_app_path(app)%> |
- <%=h app.description %> |
+ <%=h app.description %> |
+ <%if !app.anonymous %>
<%sub=Membership.find_by_app_id_and_user_id app.id,@current_user.id%>
- <%if sub and sub.credential%>
-
- <%=link_to "Edit", {:action=>"getcred",:id=>app.id,:sub_id=>sub.id}%>
- <%else%>
- <%=link_to "Create",{:action=>"getcred",:id=>app.id,:sub_id=>sub.id}%>
- |
+ <%if sub and sub.credential %>
+
+ <%=link_to "Edit", {:action=>"getcred",:id=>app.id,:sub_id=>sub.id}%>
+ <%else%>
+ <%=link_to "Create",{:action=>"getcred",:id=>app.id,:sub_id=>sub.id}%>
+ |
+ <%end%>
<%end%>
-<%end%>
+
<%end%>
<%else%>
You have no subscribed apps.