v1.0
This commit is contained in:
@ -295,7 +295,7 @@ func (this *ConfigService) Backup(remark string) (ok bool, msg string) {
|
||||
binPath += " -u " + username + " -p " + password
|
||||
}
|
||||
// 保存的路径
|
||||
dir := revel.BasePath + "/backup/" + this.getBackupDirname()
|
||||
dir := revel.BasePath + "/mongodb_backup/" + this.getBackupDirname()
|
||||
binPath += " -o " + dir
|
||||
err := os.MkdirAll(dir, 0755)
|
||||
if err != nil {
|
||||
|
@ -84,10 +84,10 @@
|
||||
{{range .users}}
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" class="ck" data-email="{{.Email}}" value="2">
|
||||
<input type="checkbox" class="ck" data-email="{{.Email}}" data-id="{{.UserId.Hex}}">
|
||||
</td>
|
||||
<td>
|
||||
{{.Email}}
|
||||
<a target="_blank" href="/blog/{{.UserId.Hex}}">{{.Email}}</a>
|
||||
</td>
|
||||
<td>
|
||||
{{.Username}}
|
||||
|
@ -62,7 +62,7 @@
|
||||
$(function() {
|
||||
// leanote动态
|
||||
// http://leanote.com/blog/cate/5446753cfacfaa4f56000000
|
||||
var url = "http://localhost:9000/blog/listCateLatest/54269c83e5276724ac000000";
|
||||
var url = "http://leanote.leanote.com/cate/5446753cfacfaa4f56000000";
|
||||
function renderItem(item) {
|
||||
return '<li class="list-group-item"><p><a target="_blank" href="http://leanote.com/blog/view/' + item.NoteId + '">' + item.Title + '</a></p><small class="block text-muted"><i class="fa fa-clock-o"></i> ' + goNowToDatetime(item.PublicTime) + '</small></li>';
|
||||
}
|
||||
|
@ -51,7 +51,7 @@
|
||||
</a>
|
||||
</li>
|
||||
<li class="hidden-xs">
|
||||
<a href="/blog/admin" class="dk">
|
||||
<a href="/logout" class="dk">
|
||||
Logout
|
||||
</a>
|
||||
</li>
|
||||
|
Reference in New Issue
Block a user