add delete link

This commit is contained in:
Rueshyna 2012-11-22 15:21:43 +08:00
parent c0ac69fc84
commit e453cfce9c
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)}
}