-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #6: initial implementation for feed autodiscovery.
- Loading branch information
1 parent
3aaf21c
commit e1eb56d
Showing
9 changed files
with
90 additions
and
31 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
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,30 @@ | ||
<form action="{{application_url}}/feeds/add/2" data-ajax-post method="POST"> | ||
<div class="modal-header"> | ||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times-circle"></i></button> | ||
<h3>Add Feed Subscription</h3> | ||
</div> | ||
{{if links}} | ||
<div class="modal-body"> | ||
{{form_message|alert}} | ||
<p>Coldsweat found the following feed(s) for {{self_link|friendly_url}}:</p> | ||
{{for loop, link in looper(links)}} | ||
{{py:url, title = link}} | ||
<label> | ||
<input type="radio" {{if loop.first}}checked{{endif}} name="self_link" value="{{url|html}}"> {{title|html}} <code>{{url|html}}</code> | ||
</label> | ||
{{endfor}} | ||
<input type="hidden" name="group" value="{{group_id}}"> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="submit" class="btn btn-primary">Subscribe</button> | ||
</div> | ||
{{else}} | ||
<div class="modal-body"> | ||
{{form_message|alert}} | ||
<p>Coldsweat could not find any feed for {{self_link|friendly_url}}.</p> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" data-dismiss="modal" class="btn btn-primary">Close</button> | ||
</div> | ||
{{endif}} | ||
</form> |
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