summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Manage/ListAvatars.cshtml
diff options
context:
space:
mode:
Diffstat (limited to 'Project-Unite/Views/Manage/ListAvatars.cshtml')
-rw-r--r--Project-Unite/Views/Manage/ListAvatars.cshtml22
1 files changed, 22 insertions, 0 deletions
diff --git a/Project-Unite/Views/Manage/ListAvatars.cshtml b/Project-Unite/Views/Manage/ListAvatars.cshtml
new file mode 100644
index 0000000..d03ea88
--- /dev/null
+++ b/Project-Unite/Views/Manage/ListAvatars.cshtml
@@ -0,0 +1,22 @@
+@model IEnumerable<Project_Unite.Models.Avatar>
+
+@{
+ ViewBag.Title = "Change avatar";
+}
+
+<h2>Change avatar</h2>
+
+<p>You can choose a new avatar on this page - you can set an existing avatar that you've uploaded or upload a new one.</p>
+
+<div class="row">
+ <div class="col-sm-2">
+ <a href="@Url.Action("UploadAvatar")" class="btn btn-default" style="width:128px;height:128px;"><span class="glyphicon glyphicon-plus"></span></a>
+ </div>
+
+ @foreach(var avatar in Model.OrderByDescending(x=>x.UploadedAt))
+ {
+ <div class="col-sm-2">
+ <a href="@Url.Action("SetAvatar", "Manage", new { id = avatar.Id })")"><img src="@avatar.AvatarUrl" width="128" height="128" /></a>
+ </div>
+ }
+</div>