Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
添加注销功能。
Browse files Browse the repository at this point in the history
  • Loading branch information
ltm0203 committed Apr 29, 2017
1 parent ce90449 commit 3d1933b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
9 changes: 5 additions & 4 deletions src/YoYo.Cms.Web/App/Admin/views/layout/header/header.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
<div class="al-user-profile" uib-dropdown>
<a uib-dropdown-toggle class="profile-toggle-link">
<img ng-src="{{::( 'Nasta' | profilePicture )}}">
<span ng-click="vm.con()">dddd</span>
<span ng-bind="vm.getUserName" ></span>
</a>
<ul class="top-dropdown-menu profile-dropdown" uib-dropdown-menu>
<li><i class="dropdown-arr"></i></li>
<li><a ng-click="vm.con()" ><i class="fa fa-user"></i>个人资料</a></li>
<li><a data-ng-click="vm.con()" ><i class="fa fa-cog"></i>Settings</a></li>
<li><a href class="signout"><i class="fa fa-power-off"></i>Sign out</a></li>
@*<li><a ng-click="vm.con()" ><i class="fa fa-user"></i>个人资料</a></li>
<li><a ><i class="fa fa-cog"></i>Settings</a></li>*@

<li><a href="@Url.Action("Logout", "Account")" class="signout"><i class="fa fa-power-off"></i>@L("Logout")</a></li>
</ul>
</div>

Expand Down
7 changes: 2 additions & 5 deletions src/YoYo.Cms.Web/App/Admin/views/layout/header/headerCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@

function header($scope, appSession) {
var vm = this;

vm.languages = abp.localization.languages;
vm.currentLanguage = abp.localization.currentLanguage;

vm.changeLanguage = function (languageName) {
console.log($scope.languages);

location.href = abp.appPath + 'AbpLocalization/ChangeCulture?cultureName=' + languageName + '&returnUrl=' + window.location.pathname + window.location.hash;
};

vm.getUserName = appSession.user.userName;

vm.con = function () {
console.log("d");
}

}

Expand Down
4 changes: 2 additions & 2 deletions src/YoYo.Cms.Web/App/Admin/views/layout/layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,10 @@
</div>
<footer class="al-footer clearfix">
<div class="al-footer-right">
Created with <i class="ion-heart"> OurGalaxy Team</i>
Created with <i class="ion-heart">YoYoCms</i>
</div>
<div class="al-footer-main clearfix">
<div class="al-copy"> © 2017, made with by OurGalaxy </div>
<div class="al-copy"> © @DateTime.Now.Year, made with by YoYoCms </div>
<ul class="al-share clearfix">
<li><i class="socicon socicon-facebook"></i></li>
<li><i class="socicon socicon-twitter"></i></li>
Expand Down

0 comments on commit 3d1933b

Please sign in to comment.