Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added class=btn to a couple buttons on the setProfilePhoto page

  • Loading branch information...
commit 260c448c9c324936e5b949aeebd0fd7a4e50592e 1 parent 8e0cf6b
@ProCynic ProCynic authored
View
1  app/controllers/Photos.java
@@ -138,7 +138,6 @@ public static void changeBGImage() {
}
public static void setProfilePhoto(Long photoId) {
-
User user = user();
Photo photo = Photo.findById(photoId);
if (photo == null)
View
4 app/views/Photos/setProfilePhotoPage.html
@@ -22,7 +22,7 @@
#{form @Photos.addProfilePhoto(), enctype:'multipart/form-data'}
<b> &{'photo.newPhoto'}: </b>
<input type="file" name="image" />
- <input type="submit" name="submit" value=&{'photo.upload'} />
+ <input type="submit" name="submit" class="btn" value=&{'photo.upload'} />
#{/form}
<br>
<b>&{'photo.useExistingPhoto'}</b>
@@ -34,7 +34,7 @@
<img src="@{Photos.getPhoto(photo.id)}" width="120" height="150" />
#{if currentUser.equals(photo.owner)}
#{form @Photos.setProfilePhoto(photo.id)}
- <input type="submit" name="submit" value=&{'photo.setAsProfilePhoto'} />
+ <input type="submit" name="submit" class="btn" value=&{'photo.setAsProfilePhoto'} />
#{/form}
#{/if}
</li>
Please sign in to comment.
Something went wrong with that request. Please try again.