-
Notifications
You must be signed in to change notification settings - Fork 45
Feature #276 ACP: basic forums management #275
Feature #276 ACP: basic forums management #275
Conversation
Nice, I’ll review this tomorrow. Thanks!
… On 8 Jan 2017, at 18:54, Matslom ***@***.***> wrote:
I skipped for now deleting forum and editing forums order.
You can view, comment on, or merge this pull request online at:
#275 <#275>
Commit Summary
Merged branch master into master
Initial forums management
More forums management
Merged branch master into master
Merged branch master into feature/ACP-forums-management
File Changes
M app/Database/Models/Forum.php <https://github.com/mybb/mybb2/pull/275/files#diff-0> (2)
M app/Database/Repositories/Decorators/Forum/CachingDecorator.php <https://github.com/mybb/mybb2/pull/275/files#diff-1> (59)
M app/Database/Repositories/Eloquent/ForumRepository.php <https://github.com/mybb/mybb2/pull/275/files#diff-2> (72)
M app/Database/Repositories/Eloquent/TopicRepository.php <https://github.com/mybb/mybb2/pull/275/files#diff-3> (8)
M app/Database/Repositories/ForumRepositoryInterface.php <https://github.com/mybb/mybb2/pull/275/files#diff-4> (48)
M app/Database/Repositories/TopicRepositoryInterface.php <https://github.com/mybb/mybb2/pull/275/files#diff-5> (8)
A app/Http/Controllers/Admin/Forums/ForumsController.php <https://github.com/mybb/mybb2/pull/275/files#diff-6> (210)
M app/Http/Controllers/Admin/Users/WarningsController.php <https://github.com/mybb/mybb2/pull/275/files#diff-7> (2)
M app/Http/Controllers/ForumController.php <https://github.com/mybb/mybb2/pull/275/files#diff-8> (2)
A app/Http/Requests/Forums/CreateForumRequest.php <https://github.com/mybb/mybb2/pull/275/files#diff-9> (47)
M app/Http/routes.php <https://github.com/mybb/mybb2/pull/275/files#diff-10> (26)
M app/Presenters/ForumPresenter.php <https://github.com/mybb/mybb2/pull/275/files#diff-11> (16)
A app/Twig/Extensions/AdminDeleteButton.php <https://github.com/mybb/mybb2/pull/275/files#diff-12> (47)
A app/Twig/Extensions/ListAllForums.php <https://github.com/mybb/mybb2/pull/275/files#diff-13> (56)
M config/twigbridge.php <https://github.com/mybb/mybb2/pull/275/files#diff-14> (2)
A resources/lang/admin/en/forums.php <https://github.com/mybb/mybb2/pull/275/files#diff-15> (32)
M resources/lang/admin/en/general.php <https://github.com/mybb/mybb2/pull/275/files#diff-16> (1)
A resources/views/admin/forums/add.twig <https://github.com/mybb/mybb2/pull/275/files#diff-17> (12)
A resources/views/admin/forums/edit.twig <https://github.com/mybb/mybb2/pull/275/files#diff-18> (12)
A resources/views/admin/forums/forum-item-select.twig <https://github.com/mybb/mybb2/pull/275/files#diff-19> (8)
A resources/views/admin/forums/forum-item.twig <https://github.com/mybb/mybb2/pull/275/files#diff-20> (10)
A resources/views/admin/forums/list.twig <https://github.com/mybb/mybb2/pull/275/files#diff-21> (11)
A resources/views/admin/partials/delete_button.twig <https://github.com/mybb/mybb2/pull/275/files#diff-22> (5)
A resources/views/admin/partials/forums/forum_form.twig <https://github.com/mybb/mybb2/pull/275/files#diff-23> (114)
M resources/views/admin/warnings/warning_types/list.twig <https://github.com/mybb/mybb2/pull/275/files#diff-24> (6)
M resources/views/layouts/admin.twig <https://github.com/mybb/mybb2/pull/275/files#diff-25> (8)
Patch Links:
https://github.com/mybb/mybb2/pull/275.patch <https://github.com/mybb/mybb2/pull/275.patch>
https://github.com/mybb/mybb2/pull/275.diff <https://github.com/mybb/mybb2/pull/275.diff>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#275>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAttcWzWOf3Ky5ynSc54XDZnXITs0YNWks5rQTDsgaJpZM4Ldw7G>.
|
Really good work @Matslom |
Yes! good job @Matslom |
foreach ($forums as $forum) { | ||
$result .= view($template, compact('forum', 'level', 'options'))->render(); | ||
if ($forum->children->count() > 0) { | ||
$result .= $this->renderForums($forum->children, $template, $options, ++$level); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++$level
should be $level + 1
...
++$level
may change the level of the next forums..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
</span> | ||
</div> | ||
<select id="order" name="order"> | ||
<option value="0">NuLL</option> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NuLL should be inserted to langs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The whole forum sorting need rewrite using javascript. It's placeholder so I leave this as is for now
<div> | ||
<a href="{{ url_route('forums.show', {'slug': forum.slug, 'id': forum.id}) }}">{{ forum.title }}</a> | Level: {{ level }} | ||
<span style="float:right"> | ||
<a href="{{ route('admin.forums.edit', {'id': forum.id}) }}">Edit</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Edit" should be inserted to langs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Thanks @ATofighi for review. |
I skipped for now deleting forum and editing forums order.
#276