Skip to content

Commit

Permalink
User management stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tidusjar committed Aug 18, 2016
1 parent 20b2f06 commit ef58563
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
errorMessage: ""
};

$scope.selectUser = function(id) {
$scope.selectUser = function (id) {
$scope.selectedUser = {};
$scope.selectedUser = $scope.users.find(x => x.id === id);
}

Expand Down
11 changes: 11 additions & 0 deletions PlexRequests.UI/Content/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -341,3 +341,14 @@ label {
-webkit-box-shadow: 3px 3px 5px 6px #191919;
box-shadow: 3px 3px 5px 6px #191919; }

.img-circle {
border-radius: 50%; }

.user-management-menu {
border-style: ridge;
height: 100%;
left: 60%;
position: absolute;
width: 40%;
top: 7%; }

2 changes: 1 addition & 1 deletion PlexRequests.UI/Content/base.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions PlexRequests.UI/Content/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -430,3 +430,15 @@ $border-radius: 10px;
-webkit-box-shadow: 3px 3px 5px 6px #191919;
box-shadow: 3px 3px 5px 6px #191919;
}
.img-circle {
border-radius: 50%;
}

.user-management-menu {
border-style: ridge;
height: 100%;
left: 60%;
position: absolute;
width: 40%;
top: 7%;
}
2 changes: 1 addition & 1 deletion PlexRequests.UI/Views/Shared/_AngularLayout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html ng-app="PlexRequests">
@Html.Partial("Shared/Partial/_Head")

<body>
<body>@Html.LoadAngularAssets()

@Html.Partial("Shared/Partial/_Navbar")

Expand Down
6 changes: 3 additions & 3 deletions PlexRequests.UI/Views/UserManagement/Index.cshtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@using PlexRequests.UI.Helpers
@inherits PlexRequests.UI.Helpers.AngularViewBase
@Html.LoadAngularAssets()

<script src="~/Content/app/userManagement/userManagementController.js"></script>
<script src="~/Content/app/userManagement/userManagementService.js"></script>
<div ng-controller="userManagementController" ng-init="getUsers()">
Expand Down Expand Up @@ -81,10 +81,10 @@
</table>
</div>

<div class="col-md-5 col-md-push-1" ng-show="selectedUser.username">
<div class="col-md-5 col-md-push-1 user-management-menu" ng-show="selectedUser.username">
<br />
<br />
<img ng-src="{{selectedUser.plexInfo.thumb}}" />
<img ng-show="selectedUser.plexInfo.thumb" class="col-md-pull-1 img-circle" style="position: absolute" ng-src="{{selectedUser.plexInfo.thumb}}" />
<div hidden="hidden" ng-bind="selectedUser.id"></div>
<div>
<strong>Username: </strong><span ng-bind="selectedUser.username"></span>
Expand Down

0 comments on commit ef58563

Please sign in to comment.