49 lines
1.3 KiB
HTML
49 lines
1.3 KiB
HTML
{{template "admin/top.html" .}}
|
|
<div class="m-b-md"> <h3 class="m-b-none">Upgrade v1.0-beta to v1.0-beta.2</h3></div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6">
|
|
<form id="add_user_form">
|
|
<section class="panel panel-default">
|
|
<div class="panel-body">
|
|
Current Version: <span class="label label-success">leanote v{{.version}}</span>
|
|
<ul>
|
|
<li>Migrate "About me" to single(a single post)</li>
|
|
<li>Add some default themes to administrator</li>
|
|
<li>Generate "UrlTitle" for all notes. "UrlTitle" is a friendly url for post</li>
|
|
<li>Generate "UrlTitle" for all notebooks</li>
|
|
<li>Generate "UrlTitle" for all singles</li>
|
|
</ul>
|
|
</div>
|
|
<footer class="panel-footer text-right bg-light lter">
|
|
<button type="submit" id="submit" class="btn btn-success btn-s-xs">Upgrade to v1.0-beta.2</button>
|
|
</footer>
|
|
</section>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{template "admin/footer.html" .}}
|
|
<script>
|
|
$(function() {
|
|
$("#submit").click(function(e){
|
|
e.preventDefault();
|
|
var t = this;
|
|
art.confirm("Are you sure to upgrade to v1.0-beta.2", function() {
|
|
$(t).button('loading');
|
|
ajaxPost("/adminUpgrade/UpgradeBetaToBeta2", {}, function(ret){
|
|
$(t).button('reset')
|
|
if(!ret.Ok) {
|
|
art.alert(ret.Msg)
|
|
} else {
|
|
art.tips("Success");
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
|
|
{{template "admin/end.html" .}} |