-
Notifications
You must be signed in to change notification settings - Fork 0
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
General24 #102
Conversation
…rs, made anchorlinks work better, made a setting tweaker plugin, renamed general themes, tried to finish the new theme
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.
Styles & templates are probably fine, some suggestions to the plugin module
vj_cms/cms_plugins.py
Outdated
from datetime import datetime | ||
|
||
client = VJClient(settings.VJ_API_URL) | ||
|
||
@plugin_pool.register_plugin | ||
class MobileSpeechbubble(CMSPluginBase): |
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.
Plugin names should end with Plugin
|
||
def render(self, context, instance, placeholder): | ||
context = super().render(context, instance, placeholder) | ||
return context |
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.
Space between classes please
vj_cms/cms_plugins.py
Outdated
context = super().render(context, instance, placeholder) | ||
return context | ||
@plugin_pool.register_plugin | ||
class TweakSettings(CMSPluginBase): |
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.
Plugin names should end with Plugin
@plugin_pool.register_plugin | ||
class TweakSettings(CMSPluginBase): | ||
name = 'Tweak Settings' | ||
model = TweakSettings |
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.
Model name clashes with the plugin class name – one reason to name the plugin TweakSettingsPlugin
vj_cms/cms_plugins.py
Outdated
return context | ||
|
||
@plugin_pool.register_plugin | ||
class AnchorLink(CMSPluginBase): |
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.
Plugin names should end with Plugin
@plugin_pool.register_plugin | ||
class AnchorLink(CMSPluginBase): | ||
name = 'Anchor link' | ||
model = AnchorLink |
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.
Model name clashes with the plugin class name – one reason to name the plugin AnchorLinkPlugin
vj_cms/cms_plugins.py
Outdated
return context | ||
|
||
@plugin_pool.register_plugin | ||
class PriorityMessage(CMSPluginBase): |
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.
Plugin names should end with Plugin
New generic theme |
No description provided.