add delete link

This commit is contained in:
Rueshyna 2012-11-22 15:21:43 +08:00 committed by chris
parent 78500e0661
commit e29583ed1f
1 changed files with 1 additions and 1 deletions

View File

@ -94,10 +94,10 @@ class Desktop::JournalPagesController < ApplicationController
{ title: publication.paper_title,
keywords: publication.keywords,
abstract: publication.abstract,
level: publication.journal_paper_type_id,
coauthors: publication.authors,
year: publication.year,
url_edit: edit_desktop_journal_page_path(publication),
url_delete: desktop_journal_page_path(publication),
files: publication.writing_journal_files.collect{|file|
{title: file.title, url: file.file.url, icon: check_file_type(file.file.url)}
}