Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug 1079413] Make certain contributor articles collapsible. #2231

Closed
wants to merge 2 commits into from

Conversation

rlr
Copy link
Contributor

@rlr rlr commented Nov 20, 2014

This is for a test, so I just put the articles list in the config. If this catches on, we'll want it to be in a db column or some special markup inside each article.

The actual code that does the collapsing already existed, I just tweaked it so it wouldn't default the first section to open.

r?

@@ -200,7 +206,7 @@ def list_documents(request, category=None):
except KeyError:
raise Http404

docs = paginate(request, docs, per_page=DOCUMENTS_PER_PAGE)
docs = paginate(request, docs, per_page=config.DOCUMENTS_PER_PAGE)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you move this settings from __init__.py to config.py? Or was it already moved and the code has just been broken for a while?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I just did this import kitsune.wiki as config but you are right. We have been using config.py for this stuff. Let me move it there.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh. I didn't notice import kitsune.wiki as config. That seems really strange, I wouldn't do that.

@rlr
Copy link
Contributor Author

rlr commented Nov 20, 2014

Yeah, that's what we used to do before, or maybe it was constants. There might be some around still. Anyway, fixed ☝️

@mythmon
Copy link
Contributor

mythmon commented Nov 20, 2014

That's much less confusing, thanks! r+

@rlr
Copy link
Contributor Author

rlr commented Nov 20, 2014

7cc4323 [bug 1079413] Make certain contributor articles collapsible.

@rlr rlr closed this Nov 20, 2014
@rlr rlr deleted the collapsible-articles-1079413 branch November 21, 2014 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants