Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #262 from TakwimuAfrica/hotfix/support-community-link
Browse files Browse the repository at this point in the history
Add community link to Support settings
  • Loading branch information
DavidLemayian authored Jul 26, 2018
2 parents bbd2cd4 + 63258da commit 609460d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
14 changes: 1 addition & 13 deletions takwimu/fixtures/supportsetting.json
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
[
{
"model": "takwimu.supportsetting",
"pk": 1,
"fields": {
"site": 1,
"hello": "[email protected]",
"zendesk": "https://takwimu.zendesk.com",
"address":
"<p>403 Placeholder</p><p>Placeholder<br/></p><p>Placeholder<br/></p><p>+0332 3423342322<br/></p>"
}
}
]
[{"model": "takwimu.supportsetting", "pk": 1, "fields": {"site": 1, "hello": "[email protected]", "zendesk": "https://takwimu.zendesk.com", "community": "https://takwimu.zendesk.com/hc/en-us/community/topics", "address": "<p>403 Placeholder</p><p>Placeholder<br/></p><p>Placeholder<br/></p><p>+0332 3423342322<br/></p>"}}]
20 changes: 20 additions & 0 deletions takwimu/migrations/0030_supportsetting_community.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2018-07-25 15:55
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('takwimu', '0029_auto_20180724_1311'),
]

operations = [
migrations.AddField(
model_name='supportsetting',
name='community',
field=models.URLField(blank=True, help_text=b'TAKWIMU Community forums URL', null=True),
),
]
2 changes: 2 additions & 0 deletions takwimu/models/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ class SupportSetting(BaseSetting):
help_text='TAKWIMU main email address')
zendesk = models.URLField(blank=True, null=True,
help_text='TAKWIMU Zendesk account URL')
community = models.URLField(blank=True, null=True,
help_text='TAKWIMU Community forums URL')
address = RichTextField(blank=True, null=True,
help_text='TAKWIMU address')

Expand Down
2 changes: 1 addition & 1 deletion takwimu/templates/takwimu/_includes/sections/updates.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h4 class="mt-4" style="font-size: 32px; font-weight: bold;">
</h4>
<p class="mt-4 mx-auto" style="max-width: 400px; color: #4a4a4a;">
Contribute to Takwimu by sharing your thoughts and ideas on the
<a href="{{ settings.takwimu.SupportSetting.zendesk }}" target="_blank" rel="noopener">community forum</a></p>
<a href="{{ settings.takwimu.SupportSetting.community }}" target="_blank" rel="noopener">community forum</a></p>
</div>
</div>
</section>
Expand Down

0 comments on commit 609460d

Please sign in to comment.