diff options
| author | Michael <[email protected]> | 2017-03-25 15:59:50 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-25 15:59:50 -0400 |
| commit | 9f238cc47fd5b9ec546b37986371e73d6ed3c626 (patch) | |
| tree | e1d9175d58999ca99d5308c2b42749bab5806581 /Project-Unite/Views/Manage/ListAvatars.cshtml | |
| parent | 84285d2ffb84f470ab7b09708075427ae31541f0 (diff) | |
| download | project-unite-9f238cc47fd5b9ec546b37986371e73d6ed3c626.tar.gz project-unite-9f238cc47fd5b9ec546b37986371e73d6ed3c626.tar.bz2 project-unite-9f238cc47fd5b9ec546b37986371e73d6ed3c626.zip | |
Avatar system :smiley:
Diffstat (limited to 'Project-Unite/Views/Manage/ListAvatars.cshtml')
| -rw-r--r-- | Project-Unite/Views/Manage/ListAvatars.cshtml | 22 |
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> |
