archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
946 stars 269 forks source link

HTML Report - Remove top panel #732

Open eduardobbs opened 3 years ago

eduardobbs commented 3 years ago

Hi, I would like to suggest the possibility of removing the top/north panel from the HTML export, in order to get more space for the actual content. This is particularly useful when IFraming the Archi HTML into an intranet portal, for instance.

This is the as is: image

This is the to be: image

If it helps, follow below part of the Powershell script I use today in my CI/CD pipeline to accomplish that. The code also inserts the "about" anchor link and the datetime whereby the export happened, which also helps (eg. troubleshooting)

$oldText1 = '<div class="ui-layout-north">'
$newText1 = '<div class="" style="display: none;">'

$oldText2 = '<b><span class="i18n-modeltree"></span></b>'
$newText2 = '<b><span class="i18n-modeltree"></span><span style="font-size: 0.9em; color: #5F5F5F">&nbsp; @ ' + (Get-Date).ToString("dd/MMM HH:mm") + '</span> <a href="#myModal" data-toggle="modal" class="btn go" style="float: right;">about</a> </b>'

Maybe a good solution would be to have a way to toggle this on/off somehow (eg. via model properties)

jbsarrodie commented 3 years ago

Hi. I won't implement it now because I need more time to think about the best way to do it and clarify the use-cases covered, but I keep the idea !

FWIW, I recently implemented a "copy to clipboard" feature which makes it really easy to copy a diagram an paste a dynamic IMG tag pointing to the original PNG file and with a deep link to the report/diagram. Maybe that's part of a broader "sharing" use-case in which user can select how/what to share.