浏览代码

Fix when user is not logged

master
父节点
当前提交
1aa75277ec
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      jm2l/templates/view_event.mako

+ 2
- 2
jm2l/templates/view_event.mako 查看文件

@@ -15,9 +15,9 @@ ${event.start_time.strftime('%H:%M')} à ${event.end_time.strftime('%H:%M')}
%if event.event_uid:
<a href="http://jm2l.linux-azur.org/node/${event.event_uid}">Link</a> -
%endif
% if event.for_year==2015 and (request.user.Staff or request.user in event.intervenants):
% if event.for_year==2015 and request.user and (request.user.Staff or request.user in event.intervenants):
<a href="/MesJM2L/${event.for_year}/${event.event_type}/${event.slug}">Editer</a>
% elif request.user.Staff:
% elif request.user and request.user.Staff:
<a href="/MesJM2L/${event.for_year}/${event.event_type}/${event.slug}">Editer</a>
% endif
<h3 style="line-height:30px;">${event.name}</h3>


正在加载...
取消
保存