Skip to content

Commit

Permalink
Remove defunct iphone bookmarklets.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromakode committed Aug 31, 2012
1 parent ae908d3 commit 1bb821b
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 75 deletions.
1 change: 0 additions & 1 deletion r2/r2/config/routing.py
Expand Up @@ -81,7 +81,6 @@ def make_map():


mc('/widget', controller='buttons', action='widget_demo_page') mc('/widget', controller='buttons', action='widget_demo_page')
mc('/bookmarklets', controller='buttons', action='bookmarklets') mc('/bookmarklets', controller='buttons', action='bookmarklets')
mc('/iphonebookmarklet', controller='buttons', action='iphonebookmarklets')


mc('/awards', controller='front', action='awards') mc('/awards', controller='front', action='awards')


Expand Down
7 changes: 0 additions & 7 deletions r2/r2/controllers/buttons.py
Expand Up @@ -119,10 +119,3 @@ def GET_bookmarklets(self):
show_sidebar = False, show_sidebar = False,
content=Bookmarklets()).render() content=Bookmarklets()).render()


def GET_iphonebookmarklets(self):
return BoringPage(_("submit"),
title = "submit to reddit",
show_sidebar = False,
content=Bookmarklets()).render()


Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
64 changes: 0 additions & 64 deletions r2/r2/templates/bookmarklets.compact

This file was deleted.

3 changes: 0 additions & 3 deletions r2/r2/templates/newlink.compact
Expand Up @@ -29,8 +29,6 @@
<%namespace file="utils.html" import="error_field, submit_form, plain_link, reddit_selector"/> <%namespace file="utils.html" import="error_field, submit_form, plain_link, reddit_selector"/>
<%namespace name="utils" file="utils.html"/> <%namespace name="utils" file="utils.html"/>


Try our&#32;<a href="/iphonebookmarklet.compact?__javascript:location.href='http://${g.domain}/submit.compact?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)">bookmarklet</a>.

<%utils:submit_form onsubmit="return post_form(this, 'submit', linkstatus, null, true)" <%utils:submit_form onsubmit="return post_form(this, 'submit', linkstatus, null, true)"
action=${add_sr("/submit")}, action=${add_sr("/submit")},
_class="submit content", _class="submit content",
Expand Down Expand Up @@ -109,7 +107,6 @@ ${thing.captcha}
</div> </div>
<input name="resubmit" value="${thing.resubmit}" type="hidden"/> <input name="resubmit" value="${thing.resubmit}" type="hidden"/>
<div class="spacer"> <div class="spacer">
Try our&#32;<a href="/iphonebookmarklet.compact?__javascript:location.href='http://${g.domain}/submit.compact?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)">bookmarklet</a>.
<button class="btn save button" name="submit" value="form" type="submit">${_("submit")}</button> <button class="btn save button" name="submit" value="form" type="submit">${_("submit")}</button>
<span class="status"></span> <span class="status"></span>
${error_field("RATELIMIT", "ratelimit")} ${error_field("RATELIMIT", "ratelimit")}
Expand Down

0 comments on commit 1bb821b

Please sign in to comment.