Skip to content
This repository has been archived by the owner on Jul 5, 2018. It is now read-only.

Commit

Permalink
move monument name out of heading
Browse files Browse the repository at this point in the history
also provide path to actual monument to allow user easy access to
the monument they visited
  • Loading branch information
jrobson authored and yuvipanda committed Jul 30, 2012
1 parent 35ecf9e commit 59844d2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/www/app.css
Expand Up @@ -423,6 +423,7 @@ button.myLocation,
}

#about-page a,
#completed-upload-detail a,
#login-page #login-create-account-msg a {
color: #666;
text-decoration: underline;
Expand Down
6 changes: 6 additions & 0 deletions assets/www/index.html
Expand Up @@ -45,6 +45,12 @@
</li>
</script>
<script type='text/html' id='upload-completed-item-detail-template'>
<h3><%= monument.name %></h3>
<p>
<a class="monumentLink">
<msg key="upload-monument-link-text"></msg>
</a>
</p>
<img class='uploaded-image-full' src='<%= upload.file %>' />
<div class='uploaded-image-details'>
<a><%= upload.title %></a>
Expand Down
6 changes: 5 additions & 1 deletion assets/www/js/app.js
Expand Up @@ -509,7 +509,11 @@ require( [ 'jquery', 'l10n', 'geo', 'api', 'templates', 'monuments', 'monument',
$uploadItem = $( uploadsTemplate( { upload: upload, monument: monument } ) );
$uploadItem.click( function() {
$( '#completed-upload-detail' ).html( uploadCompleteTemplate( { upload: upload, monument: monument } ) );
$( '#completed-upload-detail-page .actionbar h2' ).text( monument.name );
$( '#completed-upload-detail .monumentLink' ).
data( 'monument', new Monument( monument, commonsApi ) ).
click( function() {
showMonumentDetail( $( this ).data( 'monument' ) );
} ).localize();
showPage( 'completed-upload-detail-page' );
} );
$( '#uploads-list' ).append( $uploadItem );
Expand Down
2 changes: 2 additions & 0 deletions assets/www/messages/messages-en.properties
Expand Up @@ -96,6 +96,8 @@ search-monument-placeholder=Search monuments
upload-latest-title=Your photo
upload-latest-view=Why not <a>share</a> this awesome photo with your friends?
no-uploads=You haven't really uploaded anything yet, have you?
upload-completeddetail-title=Your upload
upload-monument-link-text=View this monument

settings-title=Settings
settings-account-header=Account
Expand Down
2 changes: 2 additions & 0 deletions assets/www/messages/messages-qqq.properties
Expand Up @@ -41,3 +41,5 @@ continue-upload=Button label to continue with the upload.
skip-warning=Checkbox label offering to skip the file size warning in future.
uploading-status=Status message during uploading.
upload-completeddetail-title=When viewing a photo the user uploaded this is the heading
upload-monument-link-text=Label for link that takes user from photo upload page to monument

0 comments on commit 59844d2

Please sign in to comment.