Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move more info nav link into tab navigation #74

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 1 addition & 31 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@
<!--Collected the nav links and content for toggling-->
<div class="collapse navbar-collapse" id="finda-navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li>
<a href="#" data-toggle="modal" data-target="#about">More Information</a>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
Expand All @@ -58,6 +55,7 @@
<ul class="nav nav-tabs survey-tabs control-tabs">
<li role="presentation" class="active"><a data-toggle="tab" href="#facets" id="facet-click">Get Started</a></li>
<li role="presentation"><a data-toggle="tab" id="results-tab" href="#list">View Facilities</a></li>
<li role="presentation"><a data-toggle="tab" id="about-tab" href="#about">About</a></li>
</ul>
</nav>

Expand All @@ -76,34 +74,6 @@
<h4 class="modal-title" id="aboutLabel">About <span data-project="name">Get Help Lex</span></h4>
</div>
<div class="modal-body">
<div><strong>Get Help Lex</strong> is a resource for people seeking facilities and services for substance use disorder (substance abuse/addiction) in and around Lexington, Kentucky. <a href="https://github.com/openlexington/finda">Get Help Lex</a> is an open-source project. GHL is an adaptation of Code for Boston's <a href="https://github.com/codeforboston/finda">Finda project</a>. The source code for both Finda and GHL are publically available on GitHub.</div>
<h5>Please send feedback, ideas, and bug reports to <a href="mailto:[email protected]?subject=Get Help Lex Feedback">[email protected]</a> page.</h5>

<hr>

<h3>Application creation and support from:</h3>
<h4>LFUCG Substance Abuse and Violence Intervention Program</h4>
<p><a href="http://www.lexingtonky.gov/index.aspx?page=3628">The Substance Abuse and Violence Intervention (SAVI) Program</a> works with community stakeholders and advocates in Lexington to increase programming and opportunities that reduce drug related violence by teens and young adults; decrease the stigma that inhibits recovery; advocate for and increase access to effective substance abuse treatment programming.</p>

<h4>Voices of Hope – Lexington, Inc.</h4>
<p>Voices of Hope – Lexington is a non-profit organization dedicated to creating a positive environment to help people addicted to drugs and alcohol enter and flourish in recovery.</p>

<h4>OpenLexington</h4>
<p><a href="http://openlexington.org">OpenLexington</a> is a volunteer group of civic-minded software developers, designers, urban planners, citizen activists, data geeks and more. Part of the <a href="http://brigade.codeforamerica.org">Code for America Brigade</a> program, we work with LFUCG, Fayette County, and local communities to build open-source civic apps, open public data sources, and generally help to leverage technology for use in the public sphere.</p>

<h4>LexLadiesCode</h4>
<p><a href="http://lexladiescode.org">LexLadiesCode</a> is a women's coding club based in Lexington, Kentucky gathered to increase the visibility of and possibilities for women in technology.</p>

<h4>Code for Boston</h4>
<p><a href="http://stage.codeforboston.org/">Code for Boston</a> aims to provide a 'center of gravity' for grassroots, community-driven civic innovation in the Greater Boston area. Our work includes building apps, community organizing, policy initiatives, qualitative research, and more, and we hope that volunteers of all types will join our community.</p>

<h5>With donations from:</h5>
<p>
<a href="https://www.browserstack.com/">Browserstack</a> - A cross browser testing tool.
</p>
<p>
David Caldwell, <a href="http://balancecreative.net/">Balance Creative Advertising, Design and Marketing</a> for the creation and donation of the GetHelpLex logo.
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
Expand Down
32 changes: 32 additions & 0 deletions src/templates/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<h3>About Get Help Lex</h3>

<div><strong>Get Help Lex</strong> is a resource for people seeking facilities and services for substance use disorder (substance abuse/addiction) in and around Lexington, Kentucky. <a href="https://github.com/openlexington/finda">Get Help Lex</a> is an open-source project. GHL is an adaptation of Code for Boston's <a href="https://github.com/codeforboston/finda">Finda project</a>. The source code for both Finda and GHL are publically available on GitHub.</div>

<h5>Please send feedback, ideas, and bug reports to <a href="mailto:[email protected]?subject=Get Help Lex Feedback">[email protected]</a> page.</h5>

<hr>

<h3>Application creation and support from:</h3>
<h4>LFUCG Substance Abuse and Violence Intervention Program</h4>
<p><a href="http://www.lexingtonky.gov/index.aspx?page=3628">The Substance Abuse and Violence Intervention (SAVI) Program</a> works with community stakeholders and advocates in Lexington to increase programming and opportunities that reduce drug related violence by teens and young adults; decrease the stigma that inhibits recovery; advocate for and increase access to effective substance abuse treatment programming.</p>

<h4>Voices of Hope – Lexington, Inc.</h4>
<p>Voices of Hope – Lexington is a non-profit organization dedicated to creating a positive environment to help people addicted to drugs and alcohol enter and flourish in recovery.</p>

<h4>OpenLexington</h4>
<p><a href="http://openlexington.org">OpenLexington</a> is a volunteer group of civic-minded software developers, designers, urban planners, citizen activists, data geeks and more. Part of the <a href="http://brigade.codeforamerica.org">Code for America Brigade</a> program, we work with LFUCG, Fayette County, and local communities to build open-source civic apps, open public data sources, and generally help to leverage technology for use in the public sphere.</p>

<h4>LexLadiesCode</h4>
<p><a href="http://lexladiescode.org">LexLadiesCode</a> is a women's coding club based in Lexington, Kentucky gathered to increase the visibility of and possibilities for women in technology.</p>

<h4>Code for Boston</h4>
<p><a href="http://stage.codeforboston.org/">Code for Boston</a> aims to provide a 'center of gravity' for grassroots, community-driven civic innovation in the Greater Boston area. Our work includes building apps, community organizing, policy initiatives, qualitative research, and more, and we hope that volunteers of all types will join our community.</p>

<h5>With donations from:</h5>
<p>
<a href="https://www.browserstack.com/">Browserstack</a> - A cross browser testing tool.
</p>

<p>
David Caldwell, <a href="http://balancecreative.net/">Balance Creative Advertising, Design and Marketing</a> for the creation and donation of the GetHelpLex logo.
</p>
10 changes: 9 additions & 1 deletion src/ui/facet.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ define(function(require, exports, module) {
var facetTemplate = require('text!templates/facet.html');
var facetControlsTemplate = require('text!templates/facetControls.html');
var extraResourcesTemplate = require('text!templates/extraResources.html');
var aboutTemplate = require('text!templates/about.html');

var templates = {
welcome: Handlebars.compile(welcomeTemplate),
input: Handlebars.compile(inputTemplate),
form: Handlebars.compile(formTemplate),
facet: Handlebars.compile(facetTemplate),
facetControls: Handlebars.compile(facetControlsTemplate),
extraResources: Handlebars.compile(extraResourcesTemplate)
extraResources: Handlebars.compile(extraResourcesTemplate),
about: Handlebars.compile(aboutTemplate)
};

module.exports = flight.component(function () {
Expand Down Expand Up @@ -60,6 +62,7 @@ define(function(require, exports, module) {
this.on('.js-next-prev', 'click', this.nextPrevHandler);
this.on('.js-no-treatment', 'click', this.showNoTreatment);
this.on('.js-not-sure-treatment', 'click', this.showNoTreatment);
this.on('.js-about-app', 'click', this.showAbout);
return;
}

Expand Down Expand Up @@ -205,6 +208,10 @@ define(function(require, exports, module) {
this.$node.html(templates.extraResources());
};

this.showAbout = function() {
this.$node.html(templates.about());
};

// defaultAttrs is now deprecated in favor of 'attributes', but our
// version of flight still uses this.
this.defaultAttrs({
Expand All @@ -216,6 +223,7 @@ define(function(require, exports, module) {
this.on(document, 'config', this.configureFacets);
this.on(document, 'dataFacets', this.displayFacets);
this.on(document, 'uiShowResults', this.showResults);
this.on(document, 'uiShowAbout', this.showAbout);
this.on(document, 'uiFacetChangeRequest', function(ev, facet) {
var input = $('input[name=' + facet.name + ']');
input.prop('checked', true);
Expand Down
4 changes: 4 additions & 0 deletions src/ui/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ define(function(require, exports, module) {
this.$node.find('#results-tab').on('click', function() {
this.trigger('uiShowResults', {dontClickTab: true});
}.bind(this));

this.$node.find('#about-tab').on('click', function() {
this.trigger('uiShowAbout', {dontClickTab: false});
}.bind(this));
};

this.after('initialize', function() {
Expand Down