4040from .api import ApiIdentGetterResource
4141from .query import get_query
4242from .web_utils import ProjectConverter , IdentConverter , validate_version , validate_project , validate_ident , \
43- get_elixir_version_string , get_elixir_repo_link , RequestContext , Config
43+ get_elixir_version_string , get_elixir_repo_url , RequestContext , Config
4444
4545VERSION_CACHE_DURATION_SECONDS = 2 * 60 # 2 minutes
4646ADD_ISSUE_LINK = "https://github.com/bootlin/elixir/issues/new"
4747ELIXIR_VERSION_STRING = get_elixir_version_string ()
48- ELIXIR_REPO_LINK = get_elixir_repo_link (ELIXIR_VERSION_STRING )
48+ ELIXIR_REPO_LINK = get_elixir_repo_url (ELIXIR_VERSION_STRING )
4949
5050DEFAULT_PROJECT = 'linux'
5151
@@ -70,7 +70,7 @@ def generate_error_details(req, resp, title, details):
7070 f"Error title: { title } \n " + \
7171 f"Error details: { details } \n "
7272
73- def get_github_issue_link (details : str ):
73+ def get_github_issue_url (details : str ):
7474 body = ("TODO: add information on how you reached the error here and " +
7575 "validate the details below.\n \n " +
7676 "---\n \n " +
@@ -90,10 +90,10 @@ def get_project_error_page(req, resp, exception: ElixirProjectError):
9090 'current_family' : 'A' ,
9191 'source_base_url' : '/' ,
9292 'elixir_version_string' : req .context .config .version_string ,
93- 'elixir_repo_link ' : req .context .config .repo_link ,
93+ 'elixir_repo_url ' : req .context .config .repo_url ,
9494
9595 'referer' : req .referer if req .referer != req .uri else None ,
96- 'bug_report_link ' : get_github_issue_link (report_error_details ),
96+ 'bug_report_url ' : get_github_issue_url (report_error_details ),
9797 'home_page_url' : '/' ,
9898 'report_error_details' : report_error_details ,
9999
@@ -157,7 +157,7 @@ def get_error_page(req, resp, exception: ElixirProjectError):
157157 'source_base_url' : '/' ,
158158
159159 'referer' : req .referer ,
160- 'bug_report_link ' : ADD_ISSUE_LINK + parse .quote (report_error_details ),
160+ 'bug_report_url ' : ADD_ISSUE_LINK + parse .quote (report_error_details ),
161161 'report_error_details' : report_error_details ,
162162
163163 'error_title' : exception .title ,
@@ -458,7 +458,7 @@ def get_layout_template_context(q: Query, ctx: RequestContext, get_url_with_new_
458458 'current_version_path' : current_version_path ,
459459 'topbar_families' : TOPBAR_FAMILIES ,
460460 'elixir_version_string' : ctx .config .version_string ,
461- 'elixir_repo_link ' : ctx .config .repo_link ,
461+ 'elixir_repo_url ' : ctx .config .repo_url ,
462462
463463 'source_base_url' : get_source_base_url (project , version ),
464464 'ident_base_url' : get_ident_base_url (project , version ),
@@ -602,10 +602,10 @@ def generate_source_page(ctx: RequestContext, q: Query,
602602 # Generate breadcrumbs
603603 path_split = path .split ('/' )[1 :]
604604 path_temp = ''
605- breadcrumb_links = []
605+ breadcrumb_urls = []
606606 for p in path_split :
607607 path_temp += '/' + p
608- breadcrumb_links .append ((p , f'{ source_base_url } { path_temp } ' ))
608+ breadcrumb_urls .append ((p , f'{ source_base_url } { path_temp } ' ))
609609
610610 if type == 'tree' :
611611 back_path = os .path .dirname (path [:- 1 ])
@@ -627,7 +627,7 @@ def generate_source_page(ctx: RequestContext, q: Query,
627627 raise ElixirProjectError ('File not found' , 'This file does not exist.' ,
628628 status = falcon .HTTP_NOT_FOUND ,
629629 query = q , project = project , version = version ,
630- extra_template_args = {'breadcrumb_links ' : breadcrumb_links })
630+ extra_template_args = {'breadcrumb_urls ' : breadcrumb_urls })
631631
632632 # Create titles like this:
633633 # root path: "Linux source code (v5.5.6) - Bootlin"
@@ -648,7 +648,7 @@ def generate_source_page(ctx: RequestContext, q: Query,
648648
649649 'title_path' : title_path ,
650650 'path' : path ,
651- 'breadcrumb_links ' : breadcrumb_links ,
651+ 'breadcrumb_urls ' : breadcrumb_urls ,
652652
653653 ** template_ctx ,
654654 }
0 commit comments