瀏覽代碼

Fix when user is not logged

master
tr4ck3ur des JM2L 9 年之前
父節點
當前提交
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>


Loading…
取消
儲存