Skip to content

Commit ca32716

Browse files
committed
Merge branch 'master' of https://gitee.com/bukun/TorCMS
2 parents 0baf7e6 + e4e1a2c commit ca32716

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

torcms/handlers/filter_handler.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ def echo_html_fenye_str(rec_num, fenye_num):
3636
fenye_str = '<ul class="pagination">'
3737

3838
if fenye_num > 1:
39-
pager_home = '''<li class="{0}" name='fenye' onclick='change(this);'
40-
value='{1}'><a>First Page</a></li>'''.format(
39+
pager_home = '''<li class="page-item {0}" name='fenye' onclick='change(this);'
40+
value='{1}'><a class="page-link">First Page</a></li>'''.format(
4141
'', 1
4242
)
4343

44-
pager_pre = ''' <li class="{0}" name='fenye' onclick='change(this);'
45-
value='{1}'><a>Previous Page</a></li>'''.format(
44+
pager_pre = ''' <li class="page-item {0}" name='fenye' onclick='change(this);'
45+
value='{1}'><a class="page-link">Previous Page</a></li>'''.format(
4646
'', fenye_num - 1
4747
)
4848
if fenye_num > 5:
@@ -62,19 +62,19 @@ def echo_html_fenye_str(rec_num, fenye_num):
6262
else:
6363
checkstr = ''
6464

65-
tmp_str_df = '''<li class="{0}" name='fenye' onclick='change(this);'
66-
value='{1}'><a>{1}</a></li>'''.format(
65+
tmp_str_df = '''<li class="page-item {0}" name='fenye' onclick='change(this);'
66+
value='{1}'><a class="page-link {0}">{1}</a></li>'''.format(
6767
checkstr, num
6868
)
6969

7070
pager_mid += tmp_str_df
7171
if fenye_num < pagination_num:
72-
pager_next = '''<li class="{0}" name='fenye' onclick='change(this);'
73-
value='{1}'><a>Next Page</a></li>'''.format(
72+
pager_next = '''<li class="page-item {0}" name='fenye' onclick='change(this);'
73+
value='{1}'><a class="page-link">Next Page</a></li>'''.format(
7474
'', fenye_num + 1
7575
)
76-
pager_last = '''<li class="{0}" name='fenye' onclick='change(this);'
77-
value='{1}'><a>End Page</a></li>'''.format(
76+
pager_last = '''<li class="page-item {0}" name='fenye' onclick='change(this);'
77+
value='{1}'><a class="page-link">End Page</a></li>'''.format(
7878
'', pagination_num
7979
)
8080

torcms/modules/base_modules.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,10 +832,10 @@ def render(self, *args, **kwargs):
832832

833833
par = MCategory.get_by_uid(rec.pid)
834834
if rec.uid.endswith('00'):
835-
tmp_str = '<li class="active">{0}</li>'.format(rec.name)
835+
tmp_str = '<li class="breadcrumb-item active">{0}</li>'.format(rec.name)
836836

837837
else:
838-
tmp_str = '<li><a href="/catalog/{0}">{1}</a></li><li class="active">{2}</li>'.format(
838+
tmp_str = '<li class="breadcrumb-item"><a href="/catalog/{0}">{1}</a></li><li class="breadcrumb-item active">{2}</li>'.format(
839839
par.slug, par.name, rec.name
840840
)
841841
return tmp_str

0 commit comments

Comments
 (0)