-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
87 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 27 additions & 24 deletions
51
gepi/gepi-webapp/src/main/resources/de/julielab/gepi/webapp/components/GepiWidgetLayout.tml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
<!DOCTYPE html> | ||
<t:container xmlns:t="http://tapestry.apache.org/schema/tapestry_5_4.xsd" xmlns:p="tapestry:parameter"> | ||
<div class="${classes}"> | ||
<div class="card ${viewmode} widget full-height" id="${clientId}"> | ||
<div class="card-header text-center"> | ||
${widgettitle} | ||
<span id="${resizeHandleId}" class="float-right widget-resize-to-full widget-tool-symbol" /> | ||
</div> | ||
<t:zone t:id="widgetZone" id="prop:${zoneid}" class="full-height"> | ||
<div class="card-body widget ${viewmode} full-height"> | ||
<!-- Note that is not if-else but two ifs. For JS-based charts, the body is always rendered | ||
but manually hidden until data is available. In all cases, the waiting message is displayed | ||
if no data is available at render time --> | ||
<t:if test="resultloading"> | ||
<div class="text-center shine mt-2"> | ||
${message:loading} | ||
</div> | ||
<t:trigger event="load" /> | ||
</t:if> | ||
<t:if test="renderbody"> | ||
<t:body /> | ||
</t:if> | ||
</div> | ||
</t:zone> | ||
</div> | ||
</div> | ||
<div class="${classes}"> | ||
<div class="card ${viewmode} widget full-height" id="${clientId}"> | ||
<div class="card-header text-center"> | ||
${widgettitle} | ||
<span id="${resizeHandleId}" class="float-right widget-resize-to-full widget-tool-symbol ms-2"/> | ||
<t:if test="downloadable"> | ||
<t:eventlink event="download" role="button" class="float-right widget-tool-symbol widget-download"/> | ||
</t:if> | ||
</div> | ||
<t:zone t:id="widgetZone" id="prop:${zoneid}" class="full-height"> | ||
<div class="card-body widget ${viewmode} full-height"> | ||
<!-- Note that is not if-else but two ifs. For JS-based charts, the body is always rendered | ||
but manually hidden until data is available. In all cases, the waiting message is displayed | ||
if no data is available at render time --> | ||
<t:if test="resultloading"> | ||
<div class="text-center shine mt-2"> | ||
${message:loading} | ||
</div> | ||
<t:trigger event="load"/> | ||
</t:if> | ||
<t:if test="renderbody"> | ||
<t:body/> | ||
</t:if> | ||
</div> | ||
</t:zone> | ||
</div> | ||
</div> | ||
</t:container> |
4 changes: 2 additions & 2 deletions
4
gepi/gepi-webapp/src/main/resources/de/julielab/gepi/webapp/components/TableResultWidget.tml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
gepi/gepi-webapp/src/main/webapp/images/file_download_black_24dp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.