Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #110 from JulianNorton/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
JulianNorton authored Nov 8, 2016
2 parents 8bf413c + 7d11aac commit 2a50e97
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@ Open source, General Public License v2. Basically do whatever you want with it.

### Misc
* [EJS template tutorial](http://www.embeddedjs.com/getting_started.html#create_template)
* [EJS github repo](https://github.com/mde/ejs)
* [Sublime text syntax package for `.ejs` files](https://packagecontrol.io/packages/EJS%202)
* Use [EditorConfig](http://editorconfig.org/) to maintain a consistent coding style between contributors. See [EditorConfig plugins](http://editorconfig.org/#download).
9 changes: 8 additions & 1 deletion views/partials/change-location.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@
<form action="/" method="get">
<label for="change-location">Enter a city, place, or zipcode</label>
<span class="flex wrap m-b-xs">
<input type="search" id="change-location" name="location" placeholder="New York, NY" />
<% if (typeof error == "undefined") { %>
<%# If there's no page error %>
<input type="search" id="change-location" name="location" placeholder="<%- params.formatted_location %>"/>
<% } else { %>
<%# If this is the error page, don't use the location for the placeholder %>
<input type="search" id="change-location" name="location" placeholder="New York, NY"/>
<% } %>
<button class="btn large" type="submit">Change location</button>
</span>
</form>
</nav>

0 comments on commit 2a50e97

Please sign in to comment.