Skip to content

Commit 856db4b

Browse files
Merge pull request #205 from CodeForPhilly/develop
Release: laddr v3.0.0-beta.3
2 parents 7f283d9 + 2702523 commit 856db4b

File tree

8 files changed

+18
-20
lines changed

8 files changed

+18
-20
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,11 @@ At that point you should be able to see an instance at http://localhost:7080 and
3939

4040
### Extend Laddr
4141

42-
*TODO: Extending project docs*
42+
For a permanent instance of laddr, you might want to consider deploying an *extending* project rather than laddr itself. [CodeForPhilly.org](https://codeforphilly.org) for example, is deployed from [a repository](https://github.com/CodeForPhilly/codeforphilly.org) that only contains a layer of customization that gets applied on top of laddr's repository. This gives you a place to change things like your brigade's logo or add new features without forking your own whole version of laddr.
4343

44-
```bash
45-
# build the codeforphilly example extending project instead
46-
export EMERGENCE_HOLOBRANCH=example-codeforphilly
47-
watch-site
48-
```
44+
To start a new extending project, initialize a new repository and copy the [`.holo/`](https://github.com/CodeForPhilly/codeforphilly.org/tree/develop/.holo) tree from the codeforphilly repository as a starting point. Replace `codeforphilly` with an identifier of your choice for your own project (maybe the repository name) in `.holo/config.toml` and rename `.holo/branches/emergence-site/_codeforphilly.toml` to match.
45+
46+
Then follow the same steps above to launch the project inside a container.
4947

5048
## Support
5149

html-templates/people/people.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<div class="row">
2020
<div class="col-sm-4 col-md-3">
2121
<div class="tags-ct">
22-
<div class="btn-group btn-group-justified btn-group-xs margin-bottom" role="group">
22+
<div class="btn-group btn-group-justified btn-group-sm margin-bottom" role="group">
2323
<a href="#members-by-tech" class="tagFilter active btn btn-secondary" role="button" data-group="byTech">{_ "skills"}</a>
2424
<a href="#members-by-project" class="tagFilter btn btn-secondary" role="button" data-group="byTopic">{_ "topics"}</a>
2525
</div>

html-templates/projects/projects.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<div class="row">
2727
<div class="col-sm-4 col-md-3 tags-ct">
28-
<div class="btn-group btn-group-justified btn-group-xs margin-bottom" role="group">
28+
<div class="btn-group btn-group-justified btn-group-sm margin-bottom" role="group">
2929
<a href="#projects-by-topic" class="active btn btn-secondary" role="button" data-group="byTopic">{_ "topics"}</a>
3030
<a href="#projects-by-tech" class="btn btn-secondary" role="button" data-group="byTech">{_ "tech"}</a>
3131
<a href="#projects-by-event" class="btn btn-secondary" role="button" data-group="byEvent">{_ "events"}</a>

html-templates/subtemplates/buzz.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
</div>
3030
<footer class="post-footer card-footer">
3131
{if Laddr\ProjectBuzzRequestHandler::checkWriteAccess($Buzz)}
32-
<div class="btn-group pull-right">
33-
<a href="{$Buzz->getURL()}/edit" class="btn btn-sm btn-secondary">{icon "pencil"} <span class="sr-only">{_ Edit}</span></a>
34-
<a href="{$Buzz->getURL()}/delete" class="btn btn-sm btn-danger">{icon "trash"} <span class="sr-only">{_ Delete}</span></a>
32+
<div class="btn-group-sm pull-right">
33+
<a href="{$Buzz->getURL()}/edit" class="btn btn-secondary">{icon "pencil"} <span class="sr-only">{_ Edit}</span></a>
34+
<a href="{$Buzz->getURL()}/delete" class="btn btn-danger">{icon "trash"} <span class="sr-only">{_ Delete}</span></a>
3535
</div>
3636
{/if}
3737

html-templates/subtemplates/people.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
{if $urlOnly}
1313
{$src}
1414
{else}
15-
<img width={$size} height={$size} alt="{personName $Person}" src="{$src}" class="avatar{if $imgCls} {$imgCls}{/if}">
15+
<img height={$size} alt="{personName $Person}" src="{$src}" class="avatar{if $imgCls} {$imgCls}{/if}">
1616
{/if}
1717
{/strip}{/template}
1818

@@ -28,8 +28,8 @@
2828
{else}
2929
{capture assign=src}//www.gravatar.com/avatar/{$Person->Email|strtolower|md5}?size={$pixels}&rating=g&default={Laddr::$gravatarDefault}{/capture}
3030
{/if}
31-
<div><img src="{$src}" class="avatar {if $imgCls}{$imgCls}{/if}" width="{$photoSize}" height="{$photoSize}" /></div>
31+
<img src="{$src}" class="avatar {if $imgCls}{$imgCls}{/if}" width="{$photoSize}" height="{$photoSize}" />
3232
{/if}
33-
<div class="name {$imgCls} mb-4">{personName $Person summary=$summary}</div>
33+
<span class="name">{personName $Person summary=$summary}</span>
3434
</a>
3535
{/strip}{/template}

html-templates/subtemplates/updates.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
</div>
2323
<footer class="post-footer card-footer clearfix">
2424
{if Laddr\ProjectUpdatesRequestHandler::checkWriteAccess($Update)}
25-
<div class="btn-group pull-right">
26-
<a href="{$Update->getURL()}/edit" class="btn btn-sm btn-secondary">{icon "pencil"} <span class="sr-only">{_ Edit}</span></a>
27-
<a href="{$Update->getURL()}/delete" class="btn btn-sm btn-danger">{icon "trash"} <span class="sr-only">{_ Delete}</span></a>
25+
<div class="btn-group-sm pull-right">
26+
<a href="{$Update->getURL()}/edit" class="btn btn-secondary">{icon "pencil"} <span class="sr-only">{_ Edit}</span></a>
27+
<a href="{$Update->getURL()}/delete" class="btn btn-danger">{icon "trash"} <span class="sr-only">{_ Delete}</span></a>
2828
</div>
2929
{/if}
3030

php-classes/Laddr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Laddr
1111
public static function __classLoaded()
1212
{
1313
if (empty(static::$siteName)) {
14-
static::$siteName = Site::getConfig('label');
14+
static::$siteName = Site::getConfig('label') ?: 'Brigade';
1515
}
1616

1717
if (empty(static::$siteAbbr)) {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

3-
Laddr::$siteName = _('Brigade');
4-
#Laddr::$siteAbbr = _('CfP');
3+
// Laddr::$siteName = _('Code for Philly');
4+
// Laddr::$siteAbbr = _('CfP');
55
Laddr::$siteSlogan = _('We\'re part of [a national alliance](https://brigade.codeforamerica.org) of community organizers, developers, and designers that are putting technology to work in service of our local communities. We believe that government can work, for the people, by the people, in the digital age, if we all help.');

0 commit comments

Comments
 (0)