new-day-international / reddit

New Day fork of the code that powers reddit.com
Other
3 stars 1 forks source link

Submit file to reddit.com #226

Closed caseydriscoll closed 10 years ago

caseydriscoll commented 10 years ago

At /submit/file, there is an issue where it says "reddit.com" instead of "Lightnet."

I would hard code it, but that is bad. Not sure how to proceed so I made a ticket

I believe line 41 in newfilelink.html is the problem

<div class="form-group">
  <%
    infobar_text = strings.submit_file
    if thing.default_sr:
      sr = "&#32;" + _a_buffered(thing.default_sr.name, href=thing.default_sr.path)
    else:
      sr = g.default_sr
  %>
  <div class="infobar col-sm-10 col-sm-offset-2">
    <h2>${unsafe(_("Submit file to %(sr)s") % dict(sr=sr))}</h2>
    ${md(strings.submit_file)}
  </div>
</div>
caseydriscoll commented 10 years ago

newlink.html had similar functionality, copied code.

<%
    infobar_text = strings.submit_file
    if thing.default_sr:
      sr = "&#32;" + _a_buffered(thing.default_sr.name, href=thing.default_sr.path)
    else:
      sr = _("Lightnet")
  %>