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

Commit

Permalink
cap old users' genders/sexuality
Browse files Browse the repository at this point in the history
  • Loading branch information
kfarwell committed Feb 26, 2022
1 parent 66c41cb commit bc1a802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/tpl/profile.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ fn isvisible field {
% # Gender
% genders = `` \n {redis graph read 'MATCH (u:user {username: '''$profile'''})-[:GENDER]->(g:gender)
% RETURN g.name
% ORDER BY g.order' | sed 's/_/ /g'}
% ORDER BY g.order LIMIT 5' | sed 's/_/ /g'}
% if {! isempty $genders} {
% for (gender = $genders) {
<span class="tag">%($gender%)</span>
Expand Down Expand Up @@ -232,7 +232,7 @@ fn isvisible field {
# Sexuality
sexualities = `` \n {redis graph read 'MATCH (u:user {username: '''$profile'''})-[:SEXUALITY]->(s:sexuality)
RETURN s.name
ORDER BY s.order' | sed 's/_/ /g'}
ORDER BY s.order LIMIT 3' | sed 's/_/ /g'}
if {isvisible sexuality && ! isempty $sexualities} {
echo '<div class="tags">'
for (sexuality = $sexualities) {
Expand Down

0 comments on commit bc1a802

Please sign in to comment.