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
2f449bc
commit 9af6d51
Showing
102 changed files
with
16,521 additions
and
0 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
.emergence |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,24 @@ | |||
{extends designs/site.tpl} | |||
|
|||
{block title}How to help — {$dwoo.parent}{/block} | |||
|
|||
{block content} | |||
{$Checkin = $data} | |||
|
|||
<h2>Success!</h2> | |||
<p>Thanks for checking in {if $Checkin->Project}to {projectLink $Checkin->Project}{/if} @ {Laddr::$siteName|escape}!</p> | |||
<h3>Things to do next:</h3> | |||
<ul> | |||
{if $Checkin->Project} | |||
<li><a href="{$Checkin->Project->getURL()}">Post an update to your project</a></li> | |||
{else} | |||
<li><a href="/projects">Find or start a project</a></li> | |||
{/if} | |||
|
|||
<li><a href="/">Return to the home page</a></li> | |||
|
|||
{if $.Session->hasAccountLevel('Developer')} | |||
<li><a href="/develop#/html-templates/checked-in.tpl">Add stuff to this list</a></li> | |||
{/if} | |||
</ul> | |||
{/block} |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,5 @@ | |||
{load_templates subtemplates/people.tpl} | |||
{load_templates subtemplates/contextLinks.tpl} | |||
{load_templates subtemplates/tags.tpl} | |||
{load_templates subtemplates/projects.tpl} | |||
{load_templates subtemplates/meetups.tpl} |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,58 @@ | |||
<!DOCTYPE html> | |||
{load_templates designs/site.subtemplates.tpl} | |||
<html class="no-js" lang="en"> | |||
|
|||
<head> | |||
<meta charset="utf-8"> | |||
|
|||
{* now use {$dwoo.parent} on subpages to automatically fill in the site name *} | |||
<title>{block "title"}{Laddr::$siteName|escape}{/block}</title> | |||
|
|||
{block "meta-info"} | |||
{include includes/site.meta-info.tpl} | |||
{/block} | |||
|
|||
{block "meta-rendering"} | |||
{include includes/site.meta-rendering.tpl} | |||
{/block} | |||
|
|||
{block "favicons"} | |||
{include includes/site.favicons.tpl} | |||
{/block} | |||
|
|||
{block "css"} | |||
{include includes/site.css.tpl} | |||
{/block} | |||
|
|||
{block "js-top"} | |||
{include includes/site.js-top.tpl} | |||
{/block} | |||
</head> | |||
|
|||
{* using the responseID as a class on the body can help with subpage-specific styles *} | |||
<body class="{block 'body-class'}{str_replace('/', '_', $.responseId)}-tpl{/block}"> | |||
{block header} | |||
{include includes/site.header.tpl} | |||
{/block} | |||
|
|||
{block content-wrapper-open}<div class="container">{/block} | |||
{block content}{/block} | |||
{block content-wrapper-close}</div>{/block} | |||
|
|||
{block footer} | |||
{include includes/site.footer.tpl} | |||
{/block} | |||
|
|||
{block "js-bottom"} | |||
{include includes/site.js-bottom.tpl} | |||
{/block} | |||
|
|||
{block "js-analytics"} | |||
{include includes/site.analytics.tpl} | |||
{/block} | |||
|
|||
{* enables site developers to dump the internal session log here by setting ?log_report=1 on any page *} | |||
{log_report} | |||
</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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,176 @@ | |||
{extends designs/site.tpl} | |||
|
|||
{block js-bottom} | |||
{$dwoo.parent} | |||
{jsmin "features/sidebar-tags.js+features/sidebar-checkin.js"} | |||
{/block} | |||
|
|||
{block header} | |||
{$dwoo.parent} | |||
|
|||
<div class="hero-unit"> | |||
<div class="caption"> | |||
<img src="/img/logo.png" class="logo" alt="{Laddr::$siteName|escape}"> | |||
<p>{Laddr::$siteSlogan|escape}</p> | |||
<p> | |||
<a href="{tif $.User ? '/projects' : '/register'}" class="btn btn-primary">Start Hacking</a> | |||
<small>or <a href="/mission">Learn More…</a></small> | |||
</p> | |||
</div> | |||
</div> | |||
{/block} | |||
|
|||
{block content-wrapper-open}<div class="container-fluid">{/block} | |||
{block content} | |||
<nav class="sidebar left"> | |||
|
|||
<section class="tagsSummary projects"> | |||
<a class="btn btn-success btn-mini pull-right" href="/projects/create">Add project</a> | |||
<h4><a href="/projects">Projects <span class="badge badge-info">{$projectsTotal|number_format}</span></a></h4> | |||
|
|||
<header class="btn-group"> | |||
<a href="#projects-by-tech" class="tagFilter active btn btn-mini" data-group="byTech">by tech</a> | | |||
<a href="#projects-by-topic" class="tagFilter btn btn-mini" data-group="byTopic">by topic</a> | | |||
<a href="#projects-by-event" class="tagFilter btn btn-mini" data-group="byEvent">by event</a> | |||
</header> | |||
|
|||
<ul class="tags nav nav-tabs nav-stacked byTech"> | |||
{foreach item=tag from=$projectsTags.byTech} | |||
<li>{tagLink tagData=$tag rootUrl="/projects"}</li> | |||
{/foreach} | |||
</ul> | |||
|
|||
<ul class="tags nav nav-tabs nav-stacked byTopic" style="display: none"> | |||
{foreach item=tag from=$projectsTags.byTopic} | |||
<li>{tagLink tagData=$tag rootUrl="/projects"}</li> | |||
{/foreach} | |||
</ul> | |||
|
|||
<ul class="tags nav nav-tabs nav-stacked byEvent" style="display: none"> | |||
{foreach item=tag from=$projectsTags.byEvent} | |||
<li>{tagLink tagData=$tag rootUrl="/projects"}</li> | |||
{/foreach} | |||
</ul> | |||
</section> | |||
|
|||
<section class="tagsSummary members"> | |||
<h4><a href="/people">Members <span class="badge badge-info">{$membersTotal|number_format}</span></a></h4> | |||
|
|||
<header class="btn-group"> | |||
<a href="#members-by-tech" class="tagFilter active btn btn-mini" data-group="byTech">by tech</a> | | |||
<a href="#members-by-topic" class="tagFilter btn btn-mini" data-group="byTopic">by topic</a> | |||
</header> | |||
|
|||
<ul class="tags nav nav-tabs nav-stacked byTech"> | |||
{foreach item=tag from=$membersTags.byTech} | |||
<li>{tagLink tagData=$tag rootUrl="/people"}</li> | |||
{/foreach} | |||
</ul> | |||
|
|||
<ul class="tags nav nav-tabs nav-stacked byTopic" style="display: none"> | |||
{foreach item=tag from=$membersTags.byTopic} | |||
<li>{tagLink tagData=$tag rootUrl="/people"}</li> | |||
{/foreach} | |||
</ul> | |||
</section> | |||
|
|||
{include includes/home.resources.tpl} | |||
|
|||
{* | |||
<a href="#"><h5>Events (108)</h5></a> | |||
<ul> | |||
<li><a href="#">Workshops (100/3)</h3></a></li> | |||
<li><a href="#">Hackathons (10/4)</h3></a></li> | |||
<li><a href="#">Social (6/3)</h3></a></li> | |||
</ul> | |||
<h6><a href="#">event count</a> | <a href="#">next closest</a></h6> | |||
<a href="#"><h5>Help Wanted (10)</h5></a> | |||
<ul> | |||
<li><a href="#">PHP (1)</a></li> | |||
<li><a href="#">JS (2)</a></li> | |||
<li><a href="#">Python (100)</a></li> | |||
<li><a href="#">Rails (42)</a></li> | |||
</ul> | |||
<h6><a href="#">job count</a> | <a href="#">by tech</a></h6> | |||
<a href="#"><h5>Help Offered</h5></a> | |||
<ul> | |||
<li><a href="#">Django (2)</a></li> | |||
<li><a href="#">Node.js (1)</a></li> | |||
</ul> | |||
<h6><a href="#">job count</a> | <a href="#">by tech</a></h6> | |||
*} | |||
</nav> | |||
|
|||
<aside class="sidebar right meetups"> | |||
|
|||
{if $currentMeetup} | |||
<article class="meetup meetup-current"> | |||
<h3><strong>Current</strong> Meetup</h3> | |||
{meetup $currentMeetup showRsvp=false} | |||
<form class="checkin" action="/checkin" method="POST"> | |||
<input type="hidden" name="MeetupID" value="{$currentMeetup.id}"> | |||
<select name="ProjectID" class="project-picker"> | |||
<option value="">Current Project (if any)</option> | |||
{foreach item=Project from=Laddr\Project::getAll()} | |||
<option value="{$Project->ID}">{$Project->Title|escape}</option> | |||
{/foreach} | |||
</select> | |||
<input type="submit" value="Check In" class="btn btn-success"> | |||
</form> | |||
<aside class="checkins"> | |||
<h4>Checked-in Members</h4> | |||
{$lastProjectID = null} | |||
<h5 class="muted">No Current Project</h5> | |||
<ul class="nav nav-pills nav-stacked"> | |||
{foreach item=Checkin from=$currentMeetup.checkins} | |||
{if $Checkin->ProjectID != $lastProjectID} | |||
</ul> | |||
<h5>{if $Checkin->Project}{projectLink $Checkin->Project}{/if}</h5> | |||
{$lastProjectID = $Checkin->ProjectID} | |||
<ul class="nav nav-pills nav-stacked"> | |||
{/if} | |||
<li>{personLink $Checkin->Member photo=yes photoSize=32}</li> | |||
{/foreach} | |||
</ul> | |||
</aside> | |||
</article> | |||
{/if} | |||
|
|||
{if $nextMeetup} | |||
<article class="meetup meetup-next"> | |||
<h3><strong>Next</strong> Meetup</h3> | |||
{meetup $nextMeetup} | |||
</article> | |||
{/if} | |||
|
|||
{if count($futureMeetups)} | |||
<h3>Future Meetups</h3> | |||
{foreach item=futureMeetup from=$futureMeetups} | |||
<article class="meetup meetup-future"> | |||
{meetup $futureMeetup} | |||
</article> | |||
{/foreach} | |||
{/if} | |||
|
|||
</aside> | |||
|
|||
<section class="content fixed-fixed"> | |||
<section> | |||
<h2>Latest Project Updates</h3> | |||
<div class="row-fluid"> | |||
|
|||
{foreach item=Update from=$updates} | |||
{projectUpdate $Update headingLevel=h3 showProject=true} | |||
{foreachelse} | |||
<em>No project updates have been posted on this site yet</em> | |||
{/foreach} | |||
|
|||
<a href="/project-updates">Browse all project updates…</a> | |||
|
|||
</div> <!-- .row-fluid --> | |||
</section> | |||
</section> | |||
{/block} | |||
{block content-wrapper-close}</div>{/block} |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
{extends designs/site.tpl} | |||
|
|||
{block title}How to help — {$dwoo.parent}{/block} | |||
|
|||
{block content} | |||
<h2>How to help</h2> | |||
<p><a href="/projects/create" class="btn btn-mini">Create a project</a> or <a href="/projects" class="btn btn-mini">find an existing</a> one to get involved with in our projects directory.</p> | |||
{/block} |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,7 @@ | |||
<section class="resources"> | |||
<a href="/resources"><h4>Civic Hacking Resources</h4></a> | |||
<ul class="nav nav-tabs nav-stacked"> | |||
<li><a href="http://commons.codeforamerica.org/">CfA Commons</h3></a></li> | |||
<li><a href="http://opendata.stackexchange.com/">Open Data Stack Exchange</h3></a></li> | |||
</ul> | |||
</section> |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,12 @@ | |||
{* | |||
Compresses all CSS files into a single request. | |||
Add ?cssdebug=1 to any URL to load separate uncompressed files | |||
*} | |||
{cssmin array( | |||
'bootstrap.css' | |||
,'bootstrap-responsive.css' | |||
,'bootstrap-combobox.css' | |||
,'bootstrap-tagsinput.css' | |||
,'laddr.css' | |||
,'pages/*' | |||
)} |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
<footer class="site"> | |||
Powered by <a href="http://laddr.io">Laddr</a> — a <a href="http://codeforphilly.org">Code for Philly</a> project. | |||
{* | |||
{if $responseID == 'home'} | |||
<br>Cover photo by <a href="XXXXXX" target="_blank">XXXXXX</a>. | |||
{/if} | |||
*} | |||
</footer> |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,36 @@ | |||
{load_templates subtemplates/people.tpl} | |||
<nav class="navbar navbar-inverse navbar-fixed-top navbar-site"> | |||
<section class="navbar-inner"> | |||
<div class="container"> | |||
|
|||
<!-- .btn-navbar is used as the toggle for collapsed navbar content --> | |||
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> | |||
<span class="icon-bar"></span> | |||
<span class="icon-bar"></span> | |||
<span class="icon-bar"></span> | |||
</a> | |||
|
|||
<a class="brand" href="/">{Laddr::$siteName|escape}</a> | |||
|
|||
<div class="nav-collapse collapse"> | |||
<ul class="nav"> | |||
{include includes/site.nav-sitelinks.tpl} | |||
</ul> | |||
|
|||
<ul class="nav pull-right"> | |||
{if $.User} | |||
<li class="dropdown"> | |||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">{avatar $.User 18} {$.User->FirstName} <b class="caret"></b></a> | |||
<ul class="dropdown-menu" role="menu"> | |||
{include includes/site.nav-userlinks.tpl} | |||
</ul> | |||
</li> | |||
{else} | |||
<li><a href="/login">Login</a></li> | |||
<li><a href="/register">Sign up!</a></li> | |||
{/if} | |||
</ul> | |||
</div> | |||
</div> | |||
</section> | |||
</nav> |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
{* | |||
Compresses all JS files into a single request. | |||
Add ?jsdebug=1 to any URL to load separate uncompressed files | |||
*} | |||
{jsmin array( | |||
'jquery.js' | |||
,'bootstrap/bootstrap-collapse.js' | |||
,'bootstrap/bootstrap-typeahead.js' | |||
,'bootstrap/bootstrap-dropdown.js' | |||
,'bootstrap/bootstrap-modal.js' | |||
,'bootstrap/bootstrap-modal.js' | |||
,'bootstrap/bootstrap-tooltip.js' | |||
,'bootstrap-combobox.js' | |||
,'bootstrap-tagsinput.js' | |||
)} |
Empty file.
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
{* most other old-school meta tags are now useless; "keywords" is ignored by Google, for example | |||
* but "description" is still good, and you can put other microdata-type tags in here if need be | |||
*} | |||
<meta name="description" content="A Code for America Brigade"> |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,2 @@ | |||
<li><a href="/mission">Mission</a></li> | |||
<li><a href="/how-to-help">How to Help</a></li> |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
<li><a href="{$.User->getURL()}">View My Profile</a></li> | |||
<li><a href="/profile">Edit My Profile</a></li> | |||
<li><a href="/logout">Logout</a></li> |
Oops, something went wrong.