Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add share button on my proposal page #357

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions deck/templates/proposal/my_proposals.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

{% block head_title %}{% trans "My Proposals" %}{% endblock %}

{% block head %}
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4f777bac7bca077f" async="async"></script>
{% endblock head %}

{% block content %}
<div class="row header">
<h2><strong>{% trans "My Proposals" %}</strong></h2>
Expand Down
24 changes: 23 additions & 1 deletion deck/templates/proposal/snippets/proposal_list_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ <h3 class="panel-title proposal-title">
<a href="{{ proposal.get_absolute_url }}" class="btn-flat gray text-upper" data-toggle="tooltip" title="{% trans 'See the proposal in Event.' %}">
<i class="icon-eye-open"></i> {% trans "See in Event" %}
</a>

<a href="javascript:;" data-toggle="modal" data-target="#share-proposal-modal" class="btn-flat gray text-upper" data-toggle="tooltip" title="{% trans 'Share this proposal.' %}">
<i class="icon-share"></i> {% trans "Share" %}
</a>

{% if proposal.author_id == request.user.id or request.user.is_superuser %}
<a href="{% url 'update_proposal' event_slug=proposal.event.slug slug=proposal.slug %}" class="btn-flat gray text-upper" data-toggle="tooltip" title="{% trans 'Edit the proposal.' %}">
<i class="icon-pencil"></i> {% trans "Edit" %}
Expand All @@ -30,4 +35,21 @@ <h3 class="panel-title proposal-title">
</a>
{% endif %}
</div>
</div>
</div>

<div class="modal fade" id="share-proposal-modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title">{% trans "Share your proposal!" %}</h4>
</div>

<div class="modal-body">
<div class="addthis_native_toolbox"></div>
</div>
</div>
</div>
</div>