Skip to content

Commit 412a2d3

Browse files
committed
feat(index): add link to show/hide latest tags
1 parent 8a2b75c commit 412a2d3

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

lib/pact_broker/ui/views/index/show-with-tags.haml

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
%script{type: 'text/javascript', src:'/js/bootstrap.min.js'}
77
%nav.navbase-default.navbar-right{role: "navigation"}
88
.container
9-
%ul
10-
%li.navbar-right
9+
%ul.navbar-right#top-left-menu
10+
%li
11+
%a{href: './'}
12+
Hide latest tags
1113
%a{ href: '/hal-browser/browser.html' }
1214
API Browser
1315
.container

lib/pact_broker/ui/views/index/show.haml

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
%script{type: 'text/javascript', src:'/js/bootstrap.min.js'}
77
%nav.navbase-default.navbar-right{role: "navigation"}
88
.container
9-
%ul
9+
%ul#top-left-menu
1010
%li.navbar-right
11+
%a{href: './?tags=true'}
12+
Show latest tags
1113
%a{ href: '/hal-browser/browser.html' }
1214
API Browser
1315
.container

public/stylesheets/index.css

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
}
55

66
.table-striped>tbody>tr>td.consumer, .table-striped>thead>tr>th.consumer {
7-
padding: 2px;
87
border-right: none;
98
}
109

@@ -76,3 +75,10 @@ span.pact:hover svg path, span.pact-matrix:hover svg path {
7675
fill: #2a6496;
7776
stroke: #2a6496;
7877
}
78+
79+
#top-left-menu li a{
80+
padding-left: 10px
81+
}
82+
#top-left-menu li{
83+
list-style: none;
84+
}

0 commit comments

Comments
 (0)