-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #481 from pgiraud/issue193InstructionsTab
Issue193 instructions tab
- Loading branch information
Showing
5 changed files
with
39 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<% | ||
import bleach | ||
import markdown | ||
%> | ||
% if project.status in [project.status_draft, project.status_archived] : | ||
<p class="alert alert-warning text-muted"> | ||
<span class="glyphicon glyphicon-warning-sign"></span> | ||
% if project.status == project.status_draft: | ||
${_('This project is not published yet.')} | ||
% if user and (user.is_project_manager or user.is_admin): | ||
<a href="${request.route_url('project_publish', project=project.id)}" class="pull-right"> | ||
<span class="glyphicon glyphicon-share-alt"></span> ${_('Publish')} | ||
</a> | ||
% endif | ||
% elif project.status == project.status_archived: | ||
${_('This project was archived.')} | ||
% endif | ||
</p> | ||
% endif | ||
% if project.private: | ||
<p class="text-muted"> | ||
<span class="glyphicon glyphicon-lock"></span> | ||
${_('Access to this project is limited')} | ||
</p> | ||
% endif | ||
<p>${bleach.clean(markdown.markdown(project.description), strip=True) |n}</p> | ||
<p class="text-center"> | ||
<a class="btn btn-success btn-lg instructions"> | ||
<span class="glyphicon glyphicon-share-alt"></span> | ||
${_('Instructions')}</a> | ||
</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters