Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
7ca1099
Successfully upgraded to django1.8
raxelg Jun 27, 2020
e461bb5
Fixed bug with deprecated code in django1.8
raxelg Jun 28, 2020
c789d32
add gmail to a web container env
soyapark Jun 28, 2020
a391cef
put a email port in a docker container
soyapark Jun 28, 2020
0c3ad15
Made changes for django upgrade
raxelg Jun 30, 2020
bba8e8f
Update README.md
raxelg Jun 30, 2020
c7446ca
Merge branch 'docker-fix'
Jul 2, 2020
17bac62
Upgraded to django 1.10 successfully
Jul 7, 2020
9299fff
Fixed issues with django 1.10 upgrade
Jul 8, 2020
89b3e32
Divide Raxel’s pr to upgrade the server
soyapark Sep 24, 2020
cb6e9a1
Fix app registry issue
soyapark Sep 25, 2020
6338b93
Comment out deprecated code
soyapark Sep 25, 2020
b743fd9
Merge branch 'master' into django1.8
soyapark Sep 25, 2020
d744dac
Merge pull request #311 from soyapark/django1.8
soyapark Sep 25, 2020
436099b
Update README.md
soyapark Sep 27, 2020
c9753c1
Merge
soyapark Sep 27, 2020
d1bab31
Add logging for web sending
soyapark Sep 28, 2020
dd7a306
Replace send_mail() to lamson email
soyapark Sep 28, 2020
c0bf40c
Change registration email to lamson email
soyapark Sep 28, 2020
93cf528
Delete the line
soyapark Sep 28, 2020
6c49ff4
Merge branch 'master' into django1.10
soyapark Sep 28, 2020
3c9cefa
Merge pull request #313 from soyapark/django1.10
soyapark Sep 28, 2020
d53405d
Made database changes and added friendly name throughout code
angcast Nov 11, 2020
04ac687
Fixed edit group section
angcast Nov 11, 2020
809f840
creating the friendly name for a group
angcast Dec 9, 2020
466cb69
Cleaning up code for pull request
angcast Dec 10, 2020
1d22f21
Fixing spaces
angcast Dec 10, 2020
2468f25
Fixing spaces 2
angcast Dec 10, 2020
753f5c2
fixing spaces 3
angcast Dec 10, 2020
7c07ea9
fixing spaces 4
angcast Dec 10, 2020
7261e87
Fixed subject line when sending email
angcast Dec 10, 2020
507d443
Replaced the replace all method with a hidden html element containing…
angcast Feb 5, 2021
9b5b6bc
Added hidden id in html and replaced replace all
angcast Feb 5, 2021
97e5042
Added utilities and added replace space
angcast Feb 5, 2021
a84d615
Added utilities module and added to create group/ edit
angcast Feb 5, 2021
85f04ad
Replaced all replace all methods with hidden elemenet
angcast Feb 5, 2021
b206d09
Update .env.example
angcast Feb 5, 2021
06d9006
Update .env.example
angcast Feb 5, 2021
326a6ea
Update add_donotsend.html
angcast Feb 5, 2021
aa58444
Update add_donotsend.html
angcast Feb 5, 2021
ff53485
Update add_donotsend.html
angcast Feb 5, 2021
276038f
Changed replace all in add members
angcast Feb 5, 2021
22a4a41
Modified add members replace all
angcast Feb 5, 2021
aa77d2e
Update edit_create_group.html
angcast Feb 5, 2021
b5914da
Update utilities.js
angcast Feb 5, 2021
72b1b6b
Deleted console.log
angcast Feb 5, 2021
edb7c52
Modified utilities.js
angcast Feb 5, 2021
74c29c4
Changed intructions in create group
angcast Feb 5, 2021
a749c52
minor modification in utilities.js
angcast Feb 5, 2021
3734462
changed comment in utilities.js
angcast Feb 5, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ GMAIL_PASSWORD=YOU_GMAIL_PASSWORD
DATABASE_NAME=murmur
MYSQL_PASS=murmurdb
DATABASE_HOST=db
GMAIL_PORT=587

# domain name used for sending emails
DOMAIN_NAME=localhost:8000
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/haystack/murmur?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) [![Django version](https://img.shields.io/badge/Django-1.7-blue)](https://docs.djangoproject.com/en/3.0/releases/1.7/) [![python version](https://img.shields.io/badge/python-2.7-yellowgreen.svg)](https://www.python.org/download/releases/2.7/)
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/haystack/murmur?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) [![Django version](https://img.shields.io/badge/Django-1.10-blue)](https://docs.djangoproject.com/en/3.0/releases/1.10/) [![python version](https://img.shields.io/badge/python-2.7-yellowgreen.svg)](https://www.python.org/download/releases/2.7/)

Murmur
=
Expand Down Expand Up @@ -34,9 +34,9 @@ Currently you need a gmail account in order for Murmur to send verification emai
Next set up the environment variables. The only variables you should need to set are your gmail username and password.

1. `cp .env.example .env`
2. Fill in the correct values in `.env` for your gmail account. Make sure to enable insecure logins on gmail.
2. Fill in the correct values in `.env` for your gmail account. Put your gmail address and a google app password.
3. Use `make` to create the database and create a superuser account to login
4. Check it out on `localhost:8000
4. Check it out on `localhost:8000`

#### Starting and Stopping Docker

Expand Down
6 changes: 5 additions & 1 deletion browser/templates/mobile_list_groups.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ <h3>My {{ group_or_squad | title }}s</h3>
<a href="{{ link }}">
{% endif %}
<li class="row-item" id="{{ group.name }}">
<span class="strong">{{ group.name }}</span>
{% if group.friendly_name != "" %}
<span class="strong">{{ group.friendly_name }}</span>
{% else %}
<span class="strong">{{ group.name }}</span>
{% endif %}
{% if group.admin %}
<span class="admin label">
{% if website == 'murmur' %}
Expand Down
17 changes: 1 addition & 16 deletions browser/templates/murmur/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,8 @@

{% block content %}

{% if flavour != "mobile" %}
<div class="container-home">
{% else %}
<div class="container">
{% endif %}
{% if flavour != "mobile" %}
<div class="home-left">
{% else %}
<div class="home-left-mobile">
{% endif %}


<h4>We're re-imagining mailing lists and community discourse for the age of social media.</h4>

Murmur is a new tool for group communication that blends concepts from mailing lists, forums, and social media.
Expand Down Expand Up @@ -63,13 +53,8 @@ <h4>Code</h4>
</div>


{% if flavour != "mobile" %}
<div class="home-right">
{% else %}
<div class="home-right-mobile">
{% endif %}



<div style="text-align: center;">
<h4>Our Research Team</h4>
<img class="img-circle" src="https://raw.githubusercontent.com/haystack/website/master/images/people/KakaoTalk_Photo_2017-11-22-17-47-17.jpeg" width=70><BR>
Expand Down
11 changes: 8 additions & 3 deletions browser/templates/murmur/add_donotsend.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{% extends "group_container_base.html" %}

{% block container-content %}

<h3>Add email addresses to do-not-send for <span id="group-name">{{ group_info.name }}</span></h3>

<p hidden id="group-name">{{ group_info.name }}</p>
{% if group_info.friendly_name != '' %}
<h3>Add email addresses to do-not-send for <span id="group-friendly-name">{{ group_info.friendly_name }}</span></h3>
{% else %}
<h3>Add email addresses to do-not-send for <span id="group-friendly-name">{{ group_info.name }}</span></h3>
{% endif %}
<hr>

<form id="new-members-form">
Expand All @@ -20,4 +25,4 @@ <h3>Add email addresses to do-not-send for <span id="group-name">{{ group_info.n
{% block customjs %}
<script type="text/javascript" src="/static/javascript/notify.js"></script>
<script type="text/javascript" src="/static/javascript/add_donotsend.js"></script>
{% endblock %}
{% endblock %}
22 changes: 15 additions & 7 deletions browser/templates/murmur/add_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,26 @@

<div class="container">
<div class="group-container">

<h3>Add New Associated Mailing List to <span id="group-name">{{ group_info.name }}</span></h3>

<hr />
<p hidden id="group-name">{{ group_info.name }}</p>
{% if group_info.friendly_name != '' %}
<h3>Add New Associated Mailing List to <span id="group-friendly-name">{{ group_info.friendly_name }}</span></h3>
{% else %}
<h3>Add New Associated Mailing List to <span id="group-friendly-name">{{ group_info.name }}</span></h3>
{% endif %}
<hr/>
<form id="new-list-form">
<span class="strong">List email address: </span> <br />
<input id="new-list-email" type="text" size="40"></input><br/>
<span class="strong">List URL (optional): </span> <br />
<input id="new-list-url" type="text" size="40"></input><br/>
<br/>
<input type="checkbox" id="can_post"> Allow emails from the above mailing list to be posted to {{ group_info.name }}<br/>
<input type="checkbox" id="can_receive"> Forward posts from {{ group_info.name }} to the above mailing list<br/>
<br/>
{% if group_info.friendly_name != '' %}
<input type="checkbox" id="can_post"> Allow emails from the above mailing list to be posted to {{ group_info.friendly_name }}<br/>
<input type="checkbox" id="can_receive"> Forward posts from {{ group_info.friendly_name }} to the above mailing list<br/>
{% else %}
<input type="checkbox" id="can_post"> Allow emails from the above mailing list to be posted to {{ group_info.name }}<br/>
<input type="checkbox" id="can_receive"> Forward posts from {{ group_info.name }} to the above mailing list<br/>
{% endif %}
<br /> <br />
<button type="button" id="btn-add-list" style="margin-top:10px;">Add List</button>
</form>
Expand Down
9 changes: 8 additions & 1 deletion browser/templates/murmur/add_members.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
{% extends "group_container_base.html" %}

{% block container-content %}
<h3>Add New Members to <span id="group-name">{{ group_info.name }}</span></h3>
<p hidden id="group-name">{{ group_info.name }}</p>
<h3>Add New Members to
{% if group_info.friendly_name != '' %}
<span id="group-friendly-name">{{ group_info.friendly_name }}</span>
{% else %}
<span id="group-friendly-name">{{ group_info.name }}</span>
{% endif %}
</h3>
<hr />

<form id="new-members-form">
Expand Down
24 changes: 18 additions & 6 deletions browser/templates/murmur/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,18 @@

{% if not group_page %}
<li class="dropdown dropdown-left">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span id="active_group">{{ active_group.name }}</span><span class="caret"></span></a>
{% if active_group.friendly_name != '' %}
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span id="active_group">{{ active_group.friendly_name }}</span><span class="caret"></span></a>
{% else %}
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span id="active_group">{{ active_group.name }}</span><span class="caret"></span></a>
{% endif %}
<ul class="dropdown-menu" role="menu">
{% for group in groups %}
<li><a href="/posts?group_name={{ group.name }}">{{ group.name }}</a></li>
{% for group in groups %}
{% if group.friendly_name != '' %}
<li><a href="/posts?group_name={{ group.name }}">{{ group.friendly_name }}</a></li>
{% else %}
<li><a href="/posts?group_name={{ group.name }}">{{ group.name }}</a></li>
{% endif %}
{% endfor %}
<li class="divider"></li>
<li><a href="/my_groups">Manage my groups</a></li>
Expand All @@ -82,9 +90,13 @@
<ul class="dropdown-menu" role="menu" id="list-group-names">
{% for group in groups %}
{% if group.name == active_group %}
<li><a href="/posts?group_name={{ group.name }}"><span id="active_group">{{ group.name }}</span></a></li>
{% else %}
<li><a href="/posts?group_name={{ group.name }}">{{ group.name }}</a></li>
<li><a href="/posts?group_name={{ group.name }}"><span id="active_group">{{ group.name }}</span></a></li>
{% else %}
{% if group.friendly_name != '' %}
<li><a href="/posts?group_name={{ group.name }}">{{ group.friendly_name }}</a></li>
{% else %}
<li><a href="/posts?group_name={{ group.name }}">{{ group.name }}</a></li>
{% endif %}
{% endif %}
{% endfor %}
<li class="divider"></li>
Expand Down
12 changes: 8 additions & 4 deletions browser/templates/murmur/create_post.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@

<div class="container">
<div class="group-container">

<h3>Send Post to <span id="group-name">{{ group_info.name }}</span></h3><hr />
{% if group_info.friendly_name != '' %}
<h3>Send Post to <span id="friendly-group-name">{{ group_info.friendly_name }}</span></h3><hr />
{% else %}
<h3>Send Post to <span id="friendly-group-name">{{ group_info.name }}</span></h3><hr />
{% endif %}
<span class="strong">
To :
</span>
<span id="new-post-to">{{ group_info.name }}</span>
</span>
<p hidden id="new-post-to">{{ group_info.name }}</p>
<a href="mailto:{{admin_address}}" target="_newtab">{{admin_address}}</a>
<br>
<span class="strong">
Subject :
Expand Down
18 changes: 12 additions & 6 deletions browser/templates/murmur/edit_create_group.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@ <h3>Create New Group</h3>
<form id="group-form">
<h4 class="strong">Group Name:</h4>
<span class="italic-med">
Maximum 20 characters. Only alphanumeric characters, underscores, and dashes allowed.
Maximum 20 characters. Only alphanumeric characters, spaces, and dashes allowed.
</span>
<br>
{% if edit_page %}
<input id="group-name" maxlength="20" type="text" style="width: 100%; box-sizing: border-box;" value="{{group_info.name}}">
</input>
{% if group_info.friendly_name != '' %}
<input id="group-name" maxlength="20" type="text" style="width: 100%; box-sizing: border-box;" value="{{group_info.friendly_name}}">
</input>
{% else %}
<input id="group-name" maxlength="20" type="text" style="width: 100%; box-sizing: border-box;" value="{{group_info.name}}">
</input>
{% endif %}
{% else %}
<input id="group-name" maxlength="20" type="text" style="width: 100%; box-sizing: border-box;">
</input>
Expand Down Expand Up @@ -90,8 +95,9 @@ <h4 class="strong">Attachment Policy: </h4>
{% block customjs %}
<script type="text/javascript" src="/static/javascript/notify.js"></script>
{% if edit_page %}
<script type="text/javascript" src="/static/javascript/edit_group_info.js"></script>
<script type="module" src="/static/javascript/edit_group_info.js"></script>
{% else %}
<script type="text/javascript" src="/static/javascript/create_group.js"></script>
<script type="module" src="/static/javascript/create_group.js"></script>
{% endif %}
{% endblock %}
{% endblock %}

8 changes: 6 additions & 2 deletions browser/templates/murmur/edit_my_settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@
{% block content %}

<div class="container">
<p hidden id="group-name"> {{group_info.name}} </p>
<div class="group-container">

<h3>Edit My Settings for <span id="group-name">{{ group_info.name }}</span></h3><hr /><br />
{% if group_info.friendly_name != '' %}
<h3>Edit My Settings for <span id="friendly-group-name">{{ group_info.friendly_name }}</span></h3><hr /><br />
{% else %}
<h3>Edit My Settings for <span id="friendly-group-name">{{ group_info.name }}</span></h3><hr /><br />
{% endif %}
<form id="group-settings-form">


Expand Down
Loading