Changeset 1242


Ignore:
Timestamp:
Dec 9, 2010, 1:58:36 PM (6 years ago)
Author:
work@…
Message:
  • added Facebook open graph tags
  • added Facebook like button to front page
Location:
trunk/grails-app
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/HomeController.groovy

    r1119 r1242  
    2121                    redirect(controller:'setup',action:'index')             
    2222            } else {
    23                     [ studyCount: dbnp.studycapturing.Study.count(), userCount: dbnp.authentication.SecUser.count() ]
     23                    [ studyCount: dbnp.studycapturing.Study.count(), userCount: dbnp.authentication.SecUser.count(), facebookLikeUrl: '/' ]
    2424            }
    2525    }
  • trunk/grails-app/views/home/index.gsp

    r1134 r1242  
    22<head>
    33        <title>Generic Study Capture Framework</title>
     4        <meta property="og:title" content="Generic Study Capture Framework"/>
    45        <meta name="layout" content="main"/>
    56</head>
  • trunk/grails-app/views/layouts/main.gsp

    r1241 r1242  
    33<html xmlns="http://www.w3.org/1999/xhtml" lang="en-EN" xml:lang="en-EN">
    44<head>
    5         <title><g:layoutTitle default="Grails"/></title>
     5        <title><g:layoutTitle default="GSCF"/></title>
     6        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
     7        <meta property="og:type" content="non_profit"/>
     8        <meta property="og:image" content="${resource(dir: 'images', file: 'facebookLike.png', absolute: true)}"/>
     9        <meta property="fb:admins" content="721482421"/>
    610        <link rel="stylesheet" href="${resource(dir: 'css', file: session.style + '.css')}"/>
    711        <link rel="stylesheet" href="${resource(dir: 'css', file: 'login_panel.css')}"/>
  • trunk/grails-app/views/study/show.gsp

    r1241 r1242  
    44<html>
    55<head>
    6         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    76        <meta name="layout" content="main"/>
     7        <g:if test="${studyList.size()}">
     8        <meta property="og:title" content="${studyList[0].title}"/>
     9        </g:if>
    810        <g:set var="entityName" value="${message(code: 'study.label', default: 'Study')}"/>
    911        <title><g:message code="default.show.label" args="[entityName]"/></title>
Note: See TracChangeset for help on using the changeset viewer.