-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
1 parent
0149da0
commit 5c1c8fd
Showing
5 changed files
with
126 additions
and
2 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
59 changes: 59 additions & 0 deletions
59
backend/app/connectors/grafana/reporting/report-template-test.html
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Grafana Dashboard Report</title> | ||
<style> | ||
html, body { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
* { | ||
box-sizing: border-box; | ||
} | ||
:root { | ||
--border-radius: 6px; | ||
--bg-secondary-color: #f0f0f0; | ||
--border-small-050: 1px solid #ccc; | ||
} | ||
.dashboard-container, .screenshots-container { | ||
background-color: var(--bg-secondary-color); | ||
display: flex; | ||
flex-wrap: wrap; | ||
box-sizing: border-box; | ||
padding: 10px; | ||
margin-bottom: 20px; | ||
} | ||
.dashboard-panel, .screenshot { | ||
background-color: white; | ||
overflow: hidden; | ||
flex-grow: 1; | ||
min-width: 300px; /* Adjust based on your content */ | ||
box-sizing: border-box; | ||
padding: 10px; | ||
margin: 10px; | ||
border: 1px solid #ddd; | ||
border-radius: var(--border-radius); | ||
} | ||
.screenshot img { | ||
border-radius: var(--border-radius); | ||
} | ||
.caption { | ||
text-align: center; | ||
font-size: 0.8em; | ||
color: #666; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="screenshots-container"> | ||
<h2>Screenshots</h2> | ||
{% for panel in panels %} | ||
<div class="screenshot"> | ||
<img src="data:image/png;base64,{{ panel.base64_image }}" alt="Screenshot" style="width: {{ panel.width }}px; height: {{ panel.height }}px;"> | ||
<div class="caption">Page {{ loop.index }}</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</body> | ||
</html> |
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
Binary file not shown.
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