mirror of https://gitlab.com/bashrc2/epicyon
parent
b5a23447f8
commit
17bf618633
|
@ -162,7 +162,7 @@ def get_left_column_content(base_dir: str, nickname: str, domain_full: str,
|
|||
# show the edit icon
|
||||
html_str += \
|
||||
' <a href="/users/' + nickname + '/editlinks" ' + \
|
||||
'accesskey="' + access_keys['menuEdit'] + '" tabindex="4000">' + \
|
||||
'accesskey="' + access_keys['menuEdit'] + '">' + \
|
||||
'<img class="' + edit_image_class + \
|
||||
'" loading="lazy" decoding="async" alt="' + \
|
||||
translate['Edit Links'] + ' | " title="' + \
|
||||
|
@ -172,8 +172,7 @@ def get_left_column_content(base_dir: str, nickname: str, domain_full: str,
|
|||
# show the theme designer icon
|
||||
html_str += \
|
||||
' <a href="/users/' + nickname + '/themedesigner" ' + \
|
||||
'accesskey="' + access_keys['menuThemeDesigner'] + '" ' + \
|
||||
'tabindex="4001">' + \
|
||||
'accesskey="' + access_keys['menuThemeDesigner'] + '">' + \
|
||||
'<img class="' + edit_image_class + \
|
||||
'" loading="lazy" decoding="async" alt="' + \
|
||||
translate['Theme Designer'] + ' | " title="' + \
|
||||
|
@ -191,10 +190,8 @@ def get_left_column_content(base_dir: str, nickname: str, domain_full: str,
|
|||
rss_title = translate['RSS feed for your blog']
|
||||
else:
|
||||
rss_title = translate['RSS feed for this site']
|
||||
rss_icon_tab = 'tabindex="4002"'
|
||||
rss_icon_str = \
|
||||
' <a href="' + rss_url + '" ' + rss_icon_tab + '>' + \
|
||||
'<img class="' + edit_image_class + \
|
||||
' <a href="' + rss_url + '"><img class="' + edit_image_class + \
|
||||
'" loading="lazy" decoding="async" alt="' + \
|
||||
rss_title + '" title="' + rss_title + \
|
||||
'" src="/icons/logorss.png" /></a>\n'
|
||||
|
@ -243,7 +240,6 @@ def get_left_column_content(base_dir: str, nickname: str, domain_full: str,
|
|||
new_tab_str = ' target="_blank" rel="nofollow noopener noreferrer"'
|
||||
if links_list:
|
||||
html_str += '<nav itemscope itemtype="http://schema.org/Collection">\n'
|
||||
tab_ctr = 4010
|
||||
for line_str in links_list:
|
||||
if ' ' not in line_str:
|
||||
if '#' not in line_str:
|
||||
|
@ -296,15 +292,12 @@ def get_left_column_content(base_dir: str, nickname: str, domain_full: str,
|
|||
'?showwarning=' not in link_str:
|
||||
html_str += \
|
||||
' <p><a href="' + link_str + \
|
||||
'"' + new_tab_str + \
|
||||
' tabindex="' + str(tab_ctr) + '">' + \
|
||||
'"' + new_tab_str + '>' + \
|
||||
line_str + '</a></p>\n'
|
||||
else:
|
||||
html_str += \
|
||||
' <p><a href="' + link_str + \
|
||||
'" tabindex="' + str(tab_ctr) + '">' + \
|
||||
line_str + '</a></p>\n'
|
||||
tab_ctr += 1
|
||||
'">' + line_str + '</a></p>\n'
|
||||
links_file_contains_entries = True
|
||||
elif line_str.startswith('=> '):
|
||||
# gemini style link
|
||||
|
@ -315,15 +308,12 @@ def get_left_column_content(base_dir: str, nickname: str, domain_full: str,
|
|||
'?showwarning=' not in link_str:
|
||||
html_str += \
|
||||
' <p><a href="' + link_str + \
|
||||
'"' + new_tab_str + \
|
||||
' tabindex="' + str(tab_ctr) + '">' + \
|
||||
'"' + new_tab_str + '>' + \
|
||||
line_str.strip() + '</a></p>\n'
|
||||
else:
|
||||
html_str += \
|
||||
' <p><a href="' + link_str + \
|
||||
'" tabindex="' + str(tab_ctr) + '">' + \
|
||||
line_str.strip() + '</a></p>\n'
|
||||
tab_ctr += 1
|
||||
'">' + line_str.strip() + '</a></p>\n'
|
||||
links_file_contains_entries = True
|
||||
else:
|
||||
if line_str.startswith('#') or line_str.startswith('*'):
|
||||
|
@ -344,32 +334,20 @@ def get_left_column_content(base_dir: str, nickname: str, domain_full: str,
|
|||
html_str += separator_str
|
||||
html_str += \
|
||||
'<p class="login-text"><a href="/users/' + nickname + \
|
||||
'/catalog.csv" ' + \
|
||||
'tabindex="' + str(tab_ctr) + '">' + \
|
||||
translate['Shares Catalog'] + '</a></p>'
|
||||
tab_ctr += 1
|
||||
'/catalog.csv">' + translate['Shares Catalog'] + '</a></p>'
|
||||
html_str += \
|
||||
'<p class="login-text"><a href="/users/' + \
|
||||
nickname + '/accesskeys" accesskey="' + \
|
||||
access_keys['menuKeys'] + '" ' + \
|
||||
'tabindex="' + str(tab_ctr) + '">' + \
|
||||
access_keys['menuKeys'] + '">' + \
|
||||
translate['Key Shortcuts'] + '</a></p>'
|
||||
tab_ctr += 1
|
||||
html_str += \
|
||||
'<p class="login-text"><a href="/about" ' + \
|
||||
'tabindex="' + str(tab_ctr) + '">' + \
|
||||
'<p class="login-text"><a href="/about">' + \
|
||||
translate['About this Instance'] + '</a></p>'
|
||||
tab_ctr += 1
|
||||
html_str += \
|
||||
'<p class="login-text"><a href="/terms" ' + \
|
||||
'tabindex="' + str(tab_ctr) + '">' + \
|
||||
'<p class="login-text"><a href="/terms">' + \
|
||||
translate['Terms of Service'] + '</a></p>'
|
||||
tab_ctr += 1
|
||||
|
||||
if links_file_contains_entries and not rss_icon_at_top:
|
||||
rss_icon_str = \
|
||||
rss_icon_str.replace(rss_icon_tab,
|
||||
'tabindex="' + str(tab_ctr) + '"')
|
||||
html_str += '<br><div class="columnIcons">' + rss_icon_str + '</div>'
|
||||
|
||||
return html_str
|
||||
|
|
Loading…
Reference in New Issue