Skip to content

Commit

Permalink
UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
BjoernKW committed Dec 23, 2022
1 parent ced5e28 commit 6fd8bdf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>
<groupId>com.bjoernkw</groupId>
<artifactId>schematic</artifactId>
<version>0.1.2-SNAPSHOT</version>
<version>0.1.2</version>
<name>Schematic</name>
<description>Database management UI for Spring Boot</description>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class SchematicProperties {

private String name;

private String version;
private String version = "0.1.2";

public String getName() {
return name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.bjoernkw.schematic.autoconfiguration;

import com.bjoernkw.schematic.SchematicProperties;
import com.bjoernkw.schematic.TablesController;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
Expand All @@ -22,4 +23,10 @@ public SchematicAutoConfiguration(JdbcTemplate jdbcTemplate) {
public TablesController tablesController() {
return new TablesController(jdbcTemplate);
}

@Bean
@ConditionalOnMissingBean
public SchematicProperties schematicProperties() {
return new SchematicProperties();
}
}
2 changes: 1 addition & 1 deletion src/main/resources/templates/fragments/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<div class="container">
<h1 class="app-title">Schematic - a database management UI for Spring Boot</h1>
<div class="float-end small">
v<span th:text="${@schematicProperties?.version ?: '0.1.1'}"></span>
v<span th:text="${@schematicProperties.version}"></span>
</div>
</div>
</nav>
Expand Down

0 comments on commit 6fd8bdf

Please sign in to comment.