You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.2 KiB
47 lines
1.2 KiB
2 months ago
|
<%@page pageEncoding="utf-8" contentType="text/html; charset=UTF-8" %>
|
||
|
<%@page import ="de.superx.common.SxUser" %>
|
||
|
|
||
|
<%
|
||
|
boolean showEditButton=false;
|
||
|
de.superx.common.SxUser myUser=null;
|
||
|
if (session != null) {
|
||
|
myUser= (SxUser) session.getAttribute("user");
|
||
|
if(myUser!= null && myUser.isInGroupWithName("Administratoren"))
|
||
|
{
|
||
|
showEditButton=true;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
%>
|
||
|
|
||
|
<div class="cell ${param.classname}" id="portletHeader${param.tid}" style="display:block;">
|
||
|
<% if(showEditButton)
|
||
|
{
|
||
|
%>
|
||
|
<div align="right">
|
||
|
|
||
|
<button class="button is-small is-outlined" aria-haspopup="true"
|
||
|
onClick="javascript:neu=window.open('/superx/edit/kern/portlets_edit.jsp?tid=${param.tid}','_blank','directories=no,location=no,menubar=no,scrollbars=yes,resizable=yes,toolbar=no,width=800,height=600'); return false;">
|
||
|
<span class="icon is-small">
|
||
|
<img src="/superx/images/pencil.svg" alt="Bearbeiten" title="Bearbeiten" />
|
||
|
</span>
|
||
|
</button>
|
||
|
|
||
|
</div>
|
||
|
<%
|
||
|
}
|
||
|
%>
|
||
|
<div id="portlet${param.tid}" style="display:block;">
|
||
|
<article class="media-left">
|
||
|
<div class="i icon-portlet ${param.icon}"></div>
|
||
|
<div class="media-content">
|
||
|
<h2>${param.name}</h2>
|
||
|
</div>
|
||
|
</article>
|
||
|
|
||
|
<article class="article">
|
||
|
${param.content}
|
||
|
</article>
|
||
|
</div>
|
||
|
</div>
|