| |
@@ -21,10 +21,8 @@
|
| |
|
| |
# Register widgets we will use
|
| |
hubs.widgets.registry.register_list([
|
| |
- "hubs.widgets.rules:Rules",
|
| |
"hubs.widgets.meetings:Meetings",
|
| |
"hubs.widgets.about:About",
|
| |
- "hubs.widgets.sticky:Sticky",
|
| |
"hubs.widgets.feed:Feed",
|
| |
])
|
| |
|
| |
@@ -47,19 +45,15 @@
|
| |
summary='The Internationalization Team',
|
| |
avatar=placekitten,
|
| |
archived=True,
|
| |
- ))
|
| |
-
|
| |
- widget = hubs.models.Widget(
|
| |
- plugin='rules', index=1, _config=json.dumps({
|
| |
- 'link': 'https://fedoraproject.org/wiki/I18N',
|
| |
- 'schedule_text': None,
|
| |
- 'schedule_link': None,
|
| |
- 'minutes_link': 'https://meetbot.fedoraproject.org/sresults/'
|
| |
- '?group_id=i18n&type=team',
|
| |
- }))
|
| |
- hub.widgets.append(widget)
|
| |
-
|
| |
- widget = hubs.models.Widget(plugin='meetings', index=2,
|
| |
+ description=(
|
| |
+ 'The Fedora I18N project works on internationalization (i18n)'
|
| |
+ 'to support the localization (l10n) of Fedora in many languages.'
|
| |
+ 'Translation of Fedora software and documentation are handled by'
|
| |
+ 'the Fedora L10N project.'),
|
| |
+ rules_url='https://fedoraproject.org/wiki/I18N',
|
| |
+ ))
|
| |
+
|
| |
+ widget = hubs.models.Widget(plugin='meetings', index=1,
|
| |
_config=json.dumps({'calendar': 'i18n'}))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
@@ -70,21 +64,7 @@
|
| |
}))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
- widget = hubs.models.Widget(
|
| |
- plugin='sticky', index=1, left=True, _config=json.dumps({
|
| |
- 'text': """
|
| |
- <p>The Fedora I18N project works on internationalization (i18n) to support the
|
| |
- localization (l10n) of Fedora in many languages. Translation of Fedora software
|
| |
- and documentation are handled by the Fedora L10N project.</p> <p>The goals of
|
| |
- the Project are to:</p> <ul><li>Develop, package, and maintain applications
|
| |
- like input methods for different languages</li> <li>Improve applications and
|
| |
- utilities to support and process different languages</li> <li>Quality-assure
|
| |
- that existing applications meet i18n standards</li> <li>Support the
|
| |
- infrastructure of the Fedora Localization Project</li></ul>
|
| |
- """,
|
| |
- }))
|
| |
- hub.widgets.append(widget)
|
| |
- widget = hubs.models.Widget(plugin='feed', index=2, left=True)
|
| |
+ widget = hubs.models.Widget(plugin='feed', index=1, left=True)
|
| |
hub.widgets.append(widget)
|
| |
|
| |
|
| |
@@ -104,19 +84,15 @@
|
| |
hub.config["chat_channel"] = '#fedora-hubs'
|
| |
hub.config["pagure"] = 'fedora-hubs'
|
| |
hub.config["calendar"] = 'commops'
|
| |
+ hub.config["description"] = (
|
| |
+ "Bringing more heat and light to Fedora, so you don't "
|
| |
+ "have to choose between 'building things' and 'building communities "
|
| |
+ "that build things'."
|
| |
+ )
|
| |
+ hub.config["rules_url"] = 'https://fedoraproject.org/wiki/CommOps'
|
| |
|
| |
widget = hubs.models.Widget(
|
| |
- plugin='rules', index=1, _config=json.dumps({
|
| |
- 'link': 'https://fedoraproject.org/wiki/CommOps',
|
| |
- 'schedule_text': None,
|
| |
- 'schedule_link': None,
|
| |
- 'minutes_link': 'http://meetbot.fedoraproject.org/sresults/'
|
| |
- '?group_id=commops&type=team',
|
| |
- }))
|
| |
- hub.widgets.append(widget)
|
| |
-
|
| |
- widget = hubs.models.Widget(
|
| |
- plugin='meetings', index=2, _config=json.dumps({
|
| |
+ plugin='meetings', index=1, _config=json.dumps({
|
| |
'calendar': 'commops', 'n_meetings': 4
|
| |
}))
|
| |
hub.widgets.append(widget)
|
| |
@@ -128,14 +104,7 @@
|
| |
}))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
- widget = hubs.models.Widget(
|
| |
- plugin='sticky', index=1, left=True, _config=json.dumps({
|
| |
- 'text': "Bringing more heat and light to Fedora, so you don't have "
|
| |
- "to choose between 'building things' and 'building "
|
| |
- "communities that build things.'",
|
| |
- }))
|
| |
- hub.widgets.append(widget)
|
| |
- widget = hubs.models.Widget(plugin='feed', index=2, left=True)
|
| |
+ widget = hubs.models.Widget(plugin='feed', index=1, left=True)
|
| |
hub.widgets.append(widget)
|
| |
|
| |
|
| |
@@ -153,19 +122,19 @@
|
| |
hub = hubs.models.Hub(name='marketing', hub_type="team")
|
| |
db.add(hub)
|
| |
hub.config["summary"] = 'The Fedora Marketing Team'
|
| |
+ hub.config["description"] = """
|
| |
+ The Fedora Marketing Team develops and executes marketing strategies to promote
|
| |
+ the usage and support of Fedora worldwide. Through the development of processes
|
| |
+ and content, this project aims to support the efforts of other Fedora projects
|
| |
+ to spread Fedora and to provide a central repository of ideas and information
|
| |
+ that can be used to deliver Fedora to new audiences. We work closely with the
|
| |
+ Fedora Ambassadors who spread the word about Fedora at events and allow the
|
| |
+ Fedora Project to interact directly with its existing and prospective users.
|
| |
+ """
|
| |
+ hub.config["rules_url"] = 'https://fedoraproject.org/wiki/Marketing'
|
| |
|
| |
widget = hubs.models.Widget(
|
| |
- plugin='rules', index=1, _config=json.dumps({
|
| |
- 'link': 'https://fedoraproject.org/wiki/Marketing',
|
| |
- 'schedule_text': None,
|
| |
- 'schedule_link': None,
|
| |
- 'minutes_link': 'http://meetbot.fedoraproject.org/sresults/'
|
| |
- '?group_id=fedora-mktg&type=channel',
|
| |
- }))
|
| |
- hub.widgets.append(widget)
|
| |
-
|
| |
- widget = hubs.models.Widget(
|
| |
- plugin='meetings', index=2, _config=json.dumps({
|
| |
+ plugin='meetings', index=1, _config=json.dumps({
|
| |
'calendar': 'marketing', 'n_meetings': 4
|
| |
}))
|
| |
hub.widgets.append(widget)
|
| |
@@ -177,20 +146,7 @@
|
| |
}))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
- widget = hubs.models.Widget(
|
| |
- plugin='sticky', index=1, left=True, _config=json.dumps({
|
| |
- 'text': """
|
| |
- The Fedora Marketing Team develops and executes marketing strategies to promote
|
| |
- the usage and support of Fedora worldwide. Through the development of processes
|
| |
- and content, this project aims to support the efforts of other Fedora projects
|
| |
- to spread Fedora and to provide a central repository of ideas and information
|
| |
- that can be used to deliver Fedora to new audiences. We work closely with the
|
| |
- Fedora Ambassadors who spread the word about Fedora at events and allow the
|
| |
- Fedora Project to interact directly with its existing and prospective users.
|
| |
- """,
|
| |
- }))
|
| |
- hub.widgets.append(widget)
|
| |
- widget = hubs.models.Widget(plugin='feed', index=2, left=True)
|
| |
+ widget = hubs.models.Widget(plugin='feed', index=1, left=True)
|
| |
hub.widgets.append(widget)
|
| |
|
| |
|
| |
@@ -206,43 +162,31 @@
|
| |
db.commit()
|
| |
|
| |
# ############# Design team
|
| |
- hub = hubs.models.Hub(name='designteam', hub_type="team")
|
| |
+ hub = hubs.models.Hub(name='design', hub_type="team")
|
| |
db.add(hub)
|
| |
hub.config["summary"] = 'The Fedora Design Team'
|
| |
+ hub.config["description"] = """
|
| |
+ The Design Team is the design group of the Fedora project. Our interests are
|
| |
+ not only in creating graphics for use by the Fedora community, but also in
|
| |
+ advocating the use of the creative tools that are a part of Fedora.
|
| |
+ """
|
| |
+ hub.config["rules_url"] = 'https://fedoraproject.org/wiki/Design'
|
| |
+ hub.config["meetings_text"] = 'Meetings are every other Tuesday at 16:00 UTC'
|
| |
|
| |
widget = hubs.models.Widget(
|
| |
- plugin='rules', index=1, _config=json.dumps({
|
| |
- 'link': 'https://fedoraproject.org/wiki/Design',
|
| |
- 'schedule_text': 'Meetings are every other Tuesday at 16:00 UTC',
|
| |
- 'schedule_link': 'https://apps.fedoraproject.org/calendar/design/',
|
| |
- 'minutes_link': 'http://meetbot.fedoraproject.org/sresults/'
|
| |
- '?group_id=fedora-design&type=channel',
|
| |
- }))
|
| |
- hub.widgets.append(widget)
|
| |
-
|
| |
- widget = hubs.models.Widget(
|
| |
- plugin='meetings', index=2, _config=json.dumps({
|
| |
- 'calendar': 'design', 'n_meetings': 4
|
| |
+ plugin='meetings', index=1, _config=json.dumps({
|
| |
+ 'n_meetings': 4
|
| |
}))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
# Added a hubs about widget
|
| |
widget = hubs.models.Widget(
|
| |
- plugin='about', index=3, _config=json.dumps({
|
| |
+ plugin='about', index=2, _config=json.dumps({
|
| |
"text": "I'm a Fedora user, and this is my about widget text!",
|
| |
}))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
- widget = hubs.models.Widget(
|
| |
- plugin='sticky', index=1, left=True, _config=json.dumps({
|
| |
- 'text': """
|
| |
- The Design Team is the design group of the Fedora project. Our interests are
|
| |
- not only in creating graphics for use by the Fedora community, but also in
|
| |
- advocating the use of the creative tools that are a part of Fedora.
|
| |
- """,
|
| |
- }))
|
| |
- hub.widgets.append(widget)
|
| |
- widget = hubs.models.Widget(plugin='feed', index=2, left=True)
|
| |
+ widget = hubs.models.Widget(plugin='feed', index=1, left=True)
|
| |
hub.widgets.append(widget)
|
| |
|
| |
|
| |
@@ -262,42 +206,29 @@
|
| |
hub = hubs.models.Hub(name='infrastructure', hub_type="team")
|
| |
db.add(hub)
|
| |
hub.config["summary"] = 'The Fedora Infra Team'
|
| |
+ hub.config["description"] = """
|
| |
+ The Infrastructure Team consists of dedicated volunteers and professionals
|
| |
+ managing the servers, building the tools and utilities, and creating new
|
| |
+ applications to make Fedora development a smoother process. We're located all
|
| |
+ over the globe and communicate primarily by IRC and e-mail.
|
| |
+ """
|
| |
+ hub.config["rules_url"] = 'https://fedoraproject.org/wiki/Infrastructure'
|
| |
+ hub.config["meetings_text"] = 'We meet weekly in #fedora-meeting at 18:00 UTC'
|
| |
|
| |
widget = hubs.models.Widget(
|
| |
- plugin='rules', index=1, _config=json.dumps({
|
| |
- 'link': 'https://fedoraproject.org/wiki/Infrastructure',
|
| |
- 'schedule_text': 'We meet weekly in #fedora-meeting at 18:00 UTC',
|
| |
- 'schedule_link':
|
| |
- 'https://apps.fedoraproject.org/calendar/infrastructure/',
|
| |
- 'minutes_link': 'http://meetbot.fedoraproject.org/sresults/'
|
| |
- '?group_id=infrastructure&type=team',
|
| |
- }))
|
| |
- hub.widgets.append(widget)
|
| |
-
|
| |
- widget = hubs.models.Widget(
|
| |
- plugin='meetings', index=2, _config=json.dumps({
|
| |
- 'calendar': 'infrastructure', 'n_meetings': 4
|
| |
+ plugin='meetings', index=1, _config=json.dumps({
|
| |
+ 'n_meetings': 4
|
| |
}))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
# Added a hubs about widget
|
| |
widget = hubs.models.Widget(
|
| |
- plugin='about', index=3, _config=json.dumps({
|
| |
+ plugin='about', index=2, _config=json.dumps({
|
| |
"text": "I'm a Fedora user, and this is my about widget text!",
|
| |
}))
|
| |
hub.widgets.append(widget)
|
| |
|
| |
- widget = hubs.models.Widget(
|
| |
- plugin='sticky', index=2, left=True, _config=json.dumps({
|
| |
- 'text': """
|
| |
- The Infrastructure Team consists of dedicated volunteers and professionals
|
| |
- managing the servers, building the tools and utilities, and creating new
|
| |
- applications to make Fedora development a smoother process. We're located all
|
| |
- over the globe and communicate primarily by IRC and e-mail.
|
| |
- """,
|
| |
- }))
|
| |
- hub.widgets.append(widget)
|
| |
- widget = hubs.models.Widget(plugin='feed', index=3, left=True)
|
| |
+ widget = hubs.models.Widget(plugin='feed', index=1, left=True)
|
| |
hub.widgets.append(widget)
|
| |
|
| |
hub.subscribe(hubs.models.User.by_username('ralph'), 'owner')
|
| |
Fixes #462
The only issue is that the hub contact & rules block is not overflowing on the right column as in the mockups. I'm relying on someone with better CSS skills (@ryanlerch) to fix it :-)