Skip to content

Commit

Permalink
adds download cal entries and copy feed url buttons to each project a…
Browse files Browse the repository at this point in the history
…nd the users' profile #214
  • Loading branch information
TPei committed Mar 29, 2015
1 parent cc49827 commit 6910f43
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,19 @@
<tr>
<td><strong>{% trans "Invited" %}:</strong></td>
<td>{% for invitation in invitations %}
<p class="tag-outer"><span class="tag-no-interactive"><i class="fa fa-envelope-o""></i>{{ invitation.user.username }}</span></p>
<p class="tag-outer"><span class="tag-no-interactive"><i class="fa fa-envelope-o"></i>{{ invitation.user.username }}</span></p>
{% endfor %}
</td>
</tr>
<tr>
<td><strong>{% trans "Get the Calendar feed" %}:</strong></td>
<td>
{% trans "Download the project's calendar entries and import them into your calendar app" %}: <br>
<a href="{% url 'cal:projectfeed' project.id %}"><button class="btn btn-primary"><i class="fa fa-download"></i> {% trans "Download" %}</button></a> <br>
{% trans "Or copy the feed address and add the syncing feed to your calendar app" %}: <br>
<button class="btn btn-primary"><i class="fa fa-files-o"></i> {% trans "Copy to Clipboard" %}</button>
</td>
</tr>
</table>
</div>
<div class="panel-footer">
Expand Down
11 changes: 11 additions & 0 deletions tweap/user_management/templates/user_management/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ <h1>{{user.username}}'s {% trans "profile" %}</h1>
<td><strong>{% trans "Address" %}:</strong></td>
<td id="profile_address">{{ profile_address|default:"" }}</td>
</tr>
{% if user.id == request_user.id %}
<tr>
<td><strong>{% trans "Get the Calendar feed" %}:</strong></td>
<td>
{% trans "Download all your calendar entries and import them into your calendar app" %}: <br>
<a href="{% url 'cal:userfeed' %}"><button class="btn btn-primary"><i class="fa fa-download"></i> {% trans "Download" %}</button></a> <br>
{% trans "Or copy the feed address and add the syncing feed to your calendar app" %}: <br>
<button class="btn btn-primary"><i class="fa fa-files-o"></i> {% trans "Copy to Clipboard" %}</button>
</td>
</tr>
{% endif %}
</table>
{% if user.id == request_user.id %}
<a href="{% url 'user_management:edit_profile' %}"><button id="make_changes" type="submit" name="make_changes" class="btn btn-primary">{% trans "Make Changes" %}</button></a>
Expand Down

0 comments on commit 6910f43

Please sign in to comment.