Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
add titles
Browse files Browse the repository at this point in the history
  • Loading branch information
boypt committed Jul 27, 2021
1 parent 024e066 commit 1bc69e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
8 changes: 1 addition & 7 deletions server/server_rss.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,6 @@ func (s *Server) serveRSS(w http.ResponseWriter, r *http.Request) {
results = append(results, ritem)
}

b, err := json.Marshal(results)
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
return
}
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
w.Write(b)
json.NewEncoder(w).Encode(results)
}
9 changes: 4 additions & 5 deletions static/files/template/omni.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,15 @@ <h4 class="ui dividing header">
</td>
<td class="size" ng-if="r.size">{{ r.size }}</td>
<td class="users">
<span class="seeds">{{ r.seeds }}</span>
<span class="seeds" title="seeds">{{ r.seeds }}</span>
<br />
<span class="peers"> {{ r.peers }}</span>
<span class="peers" title="peers">{{ r.peers }}</span>
</td>
<td class="controls">
<i ng-click="submitSearchItem(r)" class="ui green magnet icon" title="load the magnet link"></i>
<i ng-click="submitSearchItem(r)" class="ui green magnet icon" title="load magnet link"></i>
</td>
<td ng-if="r.torrent" class="controls">
<i ng-click="submitTorrentItem(r)" class="cloud green download alternate icon"
title="load the .torrent file"></i>
<i ng-click="submitTorrentItem(r)" class="cloud green download alternate icon" title="load .torrent file"></i>
</td>
</tr>
</table>
Expand Down

0 comments on commit 1bc69e1

Please sign in to comment.