feat(forums): readonly string

This commit is contained in:
OldHawk
2017-08-03 13:54:52 +08:00
parent e99835e480
commit dfffcb8a09
5 changed files with 8 additions and 2 deletions

View File

@@ -690,6 +690,7 @@
DELETE_REPLY_CONFIRM_BODY_TEXT: 'Are you sure want to delete this reply?',
READ_ONLY_POST: '*** Readonly forum, cannot to post topic!',
READ_ONLY_REPLY: '*** Readonly topic, cannot to post reply!',
TITLE_READONLY: 'readonly',
TODAY_NEW_COUNT_ALL: '(Today: <mark class="text-danger">{{topic}}</mark> topics, <mark class="text-danger">{{reply}}</mark> replies)',
TODAY_NEW_COUNT_TOPIC: '(Today: <mark class="text-danger">{{topic}}</mark> topics)',
TODAY_NEW_COUNT_REPLY: '(Today: <mark class="text-danger">{{reply}}</mark> replies)',

View File

@@ -690,6 +690,7 @@
DELETE_REPLY_CONFIRM_BODY_TEXT: '您确定要删除这条回复?',
READ_ONLY_POST: '*** 只读版块,不能发表话题!',
READ_ONLY_REPLY: '*** 只读话题,不能发表回复!',
TITLE_READONLY: '只读',
TODAY_NEW_COUNT_ALL: '(今日: <mark class="text-danger">{{topic}}</mark> 话题, <mark class="text-danger">{{reply}}</mark> 回复)',
TODAY_NEW_COUNT_TOPIC: '(今日: <mark class="text-danger">{{topic}}</mark> 话题)',
TODAY_NEW_COUNT_REPLY: '(今日: <mark class="text-danger">{{reply}}</mark> 回复)',

View File

@@ -135,6 +135,10 @@
}
}
.readonly {
cursor: pointer;
}
.post-list {
padding-bottom: 20px;
.pagination {

View File

@@ -27,7 +27,7 @@
<div class="forum-info">
<h4><a ui-sref="forums.view({ forumId: f._id})">{{f.name}}</a>
<small class="badge badge_default" ng-show="f.readOnly">R</small>
<small class="badge badge_default readonly" title="{{'FORUMS.TITLE_READONLY' | translate}}" ng-show="f.readOnly">R</small>
<span class="today-new-count" ng-if="vm.getTodayNewCount(f);" ng-bind-html="vm.getTodayNewCount(f);"></span>
</h4>

View File

@@ -127,7 +127,7 @@
<i class="fa fa-paperclip fa-lg" aria-hidden="true"
title="{{'FORUMS.TITLES.HAS_ATTACH' | translate}}"
ng-show="vm.hasAttach(t);"></i>
<small class="badge badge_default" ng-show="t.readOnly">R</small>
<small class="badge badge_default readonly" title="{{'FORUMS.TITLE_READONLY' | translate}}" ng-show="t.readOnly">R</small>
</p>
<p class="topic-by small">