view app/views/versions/index.api.rsb @ 1106:b5c396ea06e4 bibplugin_bibtex

Saves the temporary publication object, as well as it's id on the form.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Wed, 05 Dec 2012 19:13:15 +0000
parents cbb26bc654de
children 433d4f72a19b
line wrap: on
line source
api.array :versions, api_meta(:total_count => @versions.size) do
  @versions.each do |version|
    api.version do
      api.id version.id
      api.project(:id => version.project_id, :name => version.project.name) unless version.project.nil?

      api.name        version.name
      api.description version.description
      api.status      version.status
      api.due_date    version.effective_date

      render_api_custom_values version.custom_field_values, api

      api.created_on version.created_on
      api.updated_on version.updated_on
    end
  end
end