Skip to content

Commit

Permalink
Add information about Kraft V2 to the system overview page
Browse files Browse the repository at this point in the history
Fixes #243
  • Loading branch information
dragotin committed Oct 15, 2024
1 parent 3c3480d commit 5b67a2a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/portalview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@ QString PortalView::systemView( const QString& htmlMsg ) const
tmpl.setValue( "ICON_ACKNOWLEDGEMENT_LABEL", i18n("Some Icons are made by") );
tmpl.setValue( "ACKNOWLEGEMENT_LABEL", i18n( "Acknowledgements" ) );

tmpl.setValue( "KRAFT_V2_LABEL", i18n("Kraft Version 2"));
tmpl.setValue( "KRAFT_V2_ROOT_DIR_LABEL", i18n("Kraft Version 2 Data Directory"));
const QString v2dir = DefaultProvider::self()->kraftV2Dir();
tmpl.setValue( "KRAFTV2_ROOT_DIR", v2dir);

return tmpl.expand();
}

Expand Down
9 changes: 9 additions & 0 deletions views/systemviewdetails.thtml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,15 @@
<td></td>
</tr>

<tr>
<td colspan="3" class="header">{{KRAFT_V2_LABEL}}</td>
</tr>
<tr>
<td class="label">{{KRAFT_V2_ROOT_DIR_LABEL}}:</td>
<td class="value">{{KRAFTV2_ROOT_DIR}}</td>
<td></td>
</tr>

<tr>
<td colspan="3" class="header">{{DATABASE_TITLE_LABEL}}</td>
</tr>
Expand Down

0 comments on commit 5b67a2a

Please sign in to comment.