Skip to content

Commit

Permalink
added download.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
abarnhard committed Aug 19, 2014
1 parent 20ea47f commit 99baad8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
7 changes: 7 additions & 0 deletions app/scripts/download.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

cd ../static/img
mkdir -p $3
cd $3
wget -O $2 $1

2 changes: 1 addition & 1 deletion app/static/js/user/vacation-show.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

$(document).ready(function(){
var p = getPosition();
initMap(p.lat, p.lng, 7);
initMap(p.lat, p.lng, 11);
addMarker(p.lat, p.lng, p.name);
});

Expand Down
11 changes: 8 additions & 3 deletions app/views/vacations/show.jade
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ block content
.container-fluid
.row
.col-xs-6
#map(data-lat='#{vacation.lat}', data-lng='#{vacation.lng}', data-name='#{vacation.name}', style='height:300px;')
#map(data-lat='#{vacation.lat}', data-lng='#{vacation.lng}', data-name='#{vacation.name}', style='height:350px;')
.col-xs-6
.row
.row
Expand All @@ -12,14 +12,19 @@ block content
.row
.col-xs-12
table.table
thead
tr
th Start
th End
th # Photos
tbody
tr
td= moment(vacation.startDate).format('MMM Do YY')
td ------->
td= moment(vacation.endDate).format('MMM Do YY')
td= vacation.photos.length
.row
.col-xs-12
form.form-horizontal(role='form', method='post', action='/vacations')
form.form-horizontal(role='form', method='post', action='/vacations/#{vacation._id}/photos/new')
.form-group
label.col-sm-2.control-label(for='url') Image URL:
.col-sm-10
Expand Down

0 comments on commit 99baad8

Please sign in to comment.