Ignore:
Timestamp:
Dec 9, 2010, 2:51:51 PM (6 years ago)
Author:
work@…
Message:
  • moved 'description' from study template fields into domain variables so that every study will contain a -non required- description which is more logical
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/study/show.gsp

    r1244 r1245  
    55<head>
    66        <meta name="layout" content="main"/>
    7         <g:if test="${studyList.size()}">
     7        <g:if test="${studyList.size() == 1}">
    88        <meta property="og:title" content="${studyList[0].title}"/>
    9         <g:if test="${studyList[0].getField('description')}">
    10         <meta property="og:description" content="${(studyList[0].getFieldValue('Description')) ? studyList[0].getFieldValue('Description') : 'A study in the Generic Study Capture Framework'}"/>
    11         </g:if><g:else>
    12         <meta property="og:description" content="A study in the Generic Study Capture Framework"/>
    13         </g:else>
     9        <meta property="og:description" content="${(studyList[0].getFieldValue('description')) ? studyList[0].getFieldValue('description') : 'A study in the Generic Study Capture Framework'}"/>
    1410        </g:if>
    1511        <g:set var="entityName" value="${message(code: 'study.label', default: 'Study')}"/>
Note: See TracChangeset for help on using the changeset viewer.