summaryrefslogtreecommitdiffstats
path: root/web/directive/link.html
diff options
context:
space:
mode:
Diffstat (limited to 'web/directive/link.html')
-rw-r--r--web/directive/link.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/web/directive/link.html b/web/directive/link.html
new file mode 100644
index 0000000..ab5a0f3
--- /dev/null
+++ b/web/directive/link.html
@@ -0,0 +1,8 @@
+<!--
+ Copyright (c) 2012-2015 Kaarle Ritvanen
+ See LICENSE file for license details
+-->
+
+<a class="btn"
+ ng-class="{'btn-default': !status(), 'btn-danger': status() == 'invalid', 'btn-success': status() == 'changed'}"
+ href="#/config{{ path }}">{{ label }}</a>