Hide pagination if no pages
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- frontend
调研方向
首先定位列表模板以及所引用的 Post.html 和 Page.html 子模板,然后跟踪在没有可用页面时 PostsPager 的渲染方式。当结果只有一页或为空时完全省略 bbs-pager 容器,而存在多个页面时分页仍然可见,即表示工作完成。
由索引模型根据 Issue 内容生成。
描述
Please summarize your question in one sentence
When using the list template, some pagination HTML is printed even when there isn't any pages available. We need some way to conditionally hide HTML when there aren't any pages.
Other comments or remarks
We're using this HTML provided by the module, but we would like to conditionally not output the 'bbs-pager' div entirely when there aren't any pages. How would we do that?
<div class="blog-main-content">
[subtemplate|Post.html|Posts]
<div class="bbs-pager">
<ul class="bbs-pagination no-space">
[subtemplate|Page.html|PostsPager|pagertype=somepages]
</ul>
</div>
</div>
- 主要语言
- JavaScript
- 星标
- 39
- 派生
- 41
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DNNCommunity/DNN.Blog 的其他 Issue
-
enhancement
难度 3/5 1-2 天 新手友好度 45/100
DNNCommunity/DNN.Blog#223 ·
-
难度 3/5 1-2 天 新手友好度 35/100
DNNCommunity/DNN.Blog#222 ·
-
bug
难度 4/5 3-5 天 新手友好度 25/100
DNNCommunity/DNN.Blog#208 · 2 条评论 ·
-
enhancement
难度 5/5 一周以上 新手友好度 20/100
DNNCommunity/DNN.Blog#207 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
DNNCommunity/DNN.Blog#205 ·
查看 DNNCommunity/DNN.Blog 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
openlibhums/janeway#5604 ·
维护者通常 1 天内回复
-
[BUG] Generic OSC does not initialize OSC client on startup when "Listen for Feedback" is disabled未关闭
难度 2/5 1-3 小时 新手友好度 86/100
-
area/statement-execution TS conversion
难度 2/5 1-3 小时 新手友好度 76/100
scylladb/nodejs-rs-driver#584 ·
维护者通常 2 天内回复
-
documentation good first issue help wanted
难度 1/5 1-3 小时 新手友好度 92/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 69/100
维护者通常 3 天内回复