Skip to content

Commit c705381

Browse files
committedMar 10, 2022
Make convert link available on Home page
1 parent a68ead7 commit c705381

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
 

‎src/main/java/com/prashant/controller/MainController.java

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public ModelAndView home() {
2727
return new ModelAndView("index");
2828
}
2929

30+
3031
@RequestMapping(value = "/converter", method = RequestMethod.GET)
3132
public ModelAndView converter(ModelAndView mnv) {
3233
mnv.setViewName("converter");

‎src/main/resources/templates/index.html

+7
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ <h1>Home</h1>
1515
<p class="lead">
1616
This is home page of Currency Conversion Application.
1717
</p>
18+
<div id="navbar" class="collapse navbar-collapse">
19+
<ul class="nav navbar-nav">
20+
<li th:class="${actionName == 'converter'} ? 'active' : ''" ><a href="/converter">Converter</a></li>
21+
<!-- <li th:class="${actionName == 'contact'} ? 'active' : ''" ><a href="/contact">Contact</a></li> -->
22+
</ul>
23+
24+
</div>
1825

1926
</div>
2027

0 commit comments

Comments
 (0)
Please sign in to comment.