jumpserver/templates/nav_li_profile.html

40 lines
1.5 KiB
HTML
Raw Normal View History

2015-02-27 14:14:09 +00:00
{% load mytags %}
2015-01-03 14:24:34 +00:00
<li class="nav-header">
<div class="dropdown profile-element"> <span>
2015-03-05 16:24:17 +00:00
<img alt="image" class="img-circle" width="48" height="48" src="/static/img/{{ session_role_id | to_avatar }}.png" />
2015-03-01 14:46:19 +00:00
{# <img alt="image" class="img-circle" src="/static/img/profile_small.jpg">#}
2015-01-03 14:24:34 +00:00
</span>
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
2015-03-05 16:24:17 +00:00
<span class="clear"> <span class="block m-t-xs"> <strong class="font-bold">{{ session_user_id | to_name}}</strong>
2015-03-12 16:09:18 +00:00
</span> <span class="text-muted text-xs block">{{ session_role_id | to_role_name }} <b class="caret"></b></span> </span> </a>
2015-01-03 14:24:34 +00:00
<ul class="dropdown-menu animated fadeInRight m-t-xs">
2015-04-06 15:04:31 +00:00
<li><a value="/juser/profile/?id={{ session_user_id }}" class="iframe">个人信息</a></li>
2015-04-01 14:54:10 +00:00
<li><a href="/juser/chg_info/">修改信息</a></li>
<li><a href="/juser/chg_role/">切换角色</a></li>
2015-03-30 13:31:02 +00:00
2015-01-03 14:24:34 +00:00
<li class="divider"></li>
2015-02-28 15:22:52 +00:00
<li><a href="/logout/">注销</a></li>
2015-01-03 14:24:34 +00:00
</ul>
</div>
<div class="logo-element">
2015-02-10 10:53:01 +00:00
JS+
2015-01-03 14:24:34 +00:00
</div>
</li>
2015-04-01 14:54:10 +00:00
<script>
$(".iframe").on('click', function(){
var url= $(this).attr("value");
$.layer({
type: 2,
title: '个人信息',
maxmin: true,
shift: 'top',
border: [2, 0.3, '#1AB394'],
shade: [0.5, '#000000'],
shadeClose: true,
area : ['800px' , '600px'],
iframe: {src: url}
});
});
</script>
2015-01-30 15:30:16 +00:00