-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71fc6e7
commit a2fc000
Showing
7 changed files
with
98 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package gum | ||
|
||
class Sponsor { | ||
String type // TODO: Enum | ||
String url | ||
String title // TODO: or unique code? | ||
String file | ||
Date description | ||
Byte photo | ||
|
||
static constraints = { | ||
type(blank: false, nullable: false) // TODO: unique: true | ||
url(url:true, blank: true, nullable: true) | ||
title(blank: false, nullable: false, unique: true) | ||
file(blank: false, nullable: false) | ||
description(blank: true, nullable: true, maxSize: 1000) | ||
photo(blank: true, nullable: true) | ||
} | ||
|
||
String toString() { | ||
return title | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!-- start: Wrapper--> | ||
<div id="wrapper"> | ||
<g:render template="/hero" /> | ||
|
||
<!-- start: Container --> | ||
<div class="container"> | ||
<g:render template="/groovy" /> | ||
<g:render template="/projects" /> | ||
<calendar:events max="1" /> | ||
<hr /> | ||
<g:render template="/sponsor/sponsors2" /> | ||
</div> | ||
<!-- end: Container --> | ||
|
||
</div> | ||
<!-- end: Wrapper --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta name="layout" content="main" /> | ||
<r:require module="slider" /> | ||
</head> | ||
<body> | ||
<g:render template="/slider/index" /> | ||
<g:render template="/home2" /> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<div class="span3"> | ||
<div class="item-description"> | ||
<h4>${type}</h4> | ||
<h4>${sponsor?.type ?: type}</h4> | ||
</div> | ||
|
||
<div class="picture"> | ||
<a href="${url}" title="${title}"> | ||
<r:img dir="images/sponsors/" file="${file}" alt="${title} logo" /> | ||
<a href="${sponsor?.url ?: url}" title="${sponsor?.title ?: title}"> | ||
<r:img dir="images/sponsors/" file="${sponsor?.file ?: file}" alt="${sponsor?.title ?: title} logo" /> | ||
<div class="image-overlay-link"></div> | ||
</a> | ||
<g:if test="${description}"> | ||
${description} | ||
<g:if test="${sponsor?.description ?: description}"> | ||
${sponsor?.description ?: description} | ||
</g:if> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!-- start: Row --> | ||
<div class="row"> | ||
<div class="span9"> | ||
<div class="title"><h3>Sponsors</h3></div> | ||
<div class="row"> | ||
<g:render template="/sponsor/index" model="${[sponsor: space]}" /> | ||
<g:render template="/sponsor/index" model="${[sponsor: beverage]}" /> | ||
<g:render template="/sponsor/index" model="${[sponsor: food]}" /> | ||
</div> | ||
<div class="row"> | ||
<g:render template="/sponsor/intellij" /> | ||
<g:render template="/sponsor/index" model="${[type: "Community Sponsor", url: "http://ug.oreilly.com", title: "O'Reilly", file: "oreilly-logo.gif", description: "Buy ebooks at 50% off use the UG Program discount code: DSUG"]}" /> | ||
<g:render template="/sponsor/index" model="${[type: "Hosting Sponsor", url: "http://appfog.com", title: "AppFog", file: "appfog-logo.jpg"]}" /> | ||
</div> | ||
</div> | ||
<g:render template="/social/twitter" /> | ||
</div> | ||
<!-- end: Row --> |