aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/options.html
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-05-29 14:20:13 -0700
committerAlex Yatskov <alex@foosoft.net>2016-05-29 14:20:13 -0700
commit6f63999dce9f14103d6dfae155c4fc0c151ab8de (patch)
tree2a8621b94c0bc0dc3d66526b4545c093cde870ea /ext/bg/options.html
parent9ab95e6602e7bf327764f356efc388558856e6e3 (diff)
Adding version checking
Diffstat (limited to 'ext/bg/options.html')
-rw-r--r--ext/bg/options.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/bg/options.html b/ext/bg/options.html
index 55df936b..c6e14fdf 100644
--- a/ext/bg/options.html
+++ b/ext/bg/options.html
@@ -16,6 +16,10 @@
border-right: 1px #ddd solid;
padding: 10px;
}
+
+ .error-dlg {
+ display: none;
+ }
</style>
</head>
<body>
@@ -60,7 +64,7 @@
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<div class="checkbox">
- <label class="control-label"><input type="checkbox" id="enable-anki-connect"> Enable <a href="https://foosoft.net/projects/yomichan">AnkiConnect</a></label>
+ <label class="control-label"><input type="checkbox" id="enable-anki-connect"> Enable <a href="https://foosoft.net/projects/anki-connect">AnkiConnect</a></label>
</div>
</div>
</div>
@@ -71,6 +75,9 @@
<div class="options-anki">
<h2>Anki</h2>
+ <div class="alert alert-danger error-dlg error-dlg-connection"><strong>Unable to connect</strong>: is the <a href="https://foosoft.net/projects/anki-connect">AnkiConnect</a> extension for <a href="http://ankisrs.net/">Anki</a> installed and running?</div>
+ <div class="alert alert-warning error-dlg error-dlg-version"><strong>Unsupported version</strong>: the installed version of the <a href="https://foosoft.net/projects/anki-connect">AnkiConnect</a> extension for <a href="http://ankisrs.net/">Anki</a> is not compatible with this release.</div>
+
<form class="form-horizontal">
<ul class="nav nav-tabs">
<li class="active"><a href="#vocab" data-toggle="tab">Vocabulary</a></li>