Browse Source

Merge branch 'membership_link' of opi/coin into master

jocelyn 9 years ago
parent
commit
6706044535
3 changed files with 11 additions and 2 deletions
  1. 7 0
      README.md
  2. 3 1
      coin/members/templates/members/detail.html
  3. 1 1
      coin/settings.py

+ 7 - 0
README.md

@@ -233,6 +233,13 @@ Then  make a copy of the template file (and customize it) at
 
 Good to go :-)
 
+Settings
+========
+
+List of available settings in your `settings_local.py` file.
+
+- `MEMBER_MEMBERSHIP_INFO_URL`: Link to a page with information on how to become a member or pay the membership fee
+
 More information
 ================
 

+ 3 - 1
coin/members/templates/members/detail.html

@@ -86,9 +86,11 @@
                 {% endif %}
             </p>
 
-            <a href="{{ membership_info_url }}" target="_blank" class="button small radius expand">
+            {% if membership_info_url %}
+            <a href="{{ membership_info_url }}" class="button small radius expand">
                 <i class="fa fa-heart"></i> Renouveler ma cotisation
             </a>
+            {% endif %}
         </div>
 
     </div>

+ 1 - 1
coin/settings.py

@@ -235,7 +235,7 @@ MEMBER_DEFAULT_COTISATION = 20
 
 # Link to a page with information on how to become a member or pay the
 # membership fee
-MEMBER_MEMBERSHIP_INFO_URL = '#'
+MEMBER_MEMBERSHIP_INFO_URL = ''
 
 # Reset session if cookie older than 2h.
 SESSION_COOKIE_AGE = 7200