%if install~%>
<%Links::Update::browser_install~%>
<%if update_success and update_status == 2~%><%include update_version.html%><%endparse~%>
<%elsif update_success%><%set message = 'Selected updates have been successfully installed.'~%>
<%elsif update_failed~%>
<%if verify_failed~%>
<%set error = "Unable to installed selected updates: Update verification failed: "~%>
<%set failure_reason = '
'~%>
<%if already_installed%><%set failure_reason .= "- Some selected updates were already installed.
"~%>
<%elsif does_not_exist%><%set failure_reason .= "- Some selected updates are no longer available for installation.
"~%>
<%elsif unique_update%><%set failure_reason .= "- One or more selected updates are marked as unique, but more than one update was selected.
"~%>
<%elsif depends_on%><%set failure_reason .= "- One or more selected updates require dependencies which were not selected.
"~%>
<%endif~%>
<%if failure_reason eq ''%><%set failure_reason = 'Unknown error.'%><%else%><%set failure_reason .= '
'%><%endif~%>
<%set error .= $failure_reason~%>
<%endif~%>
<%endif~%>
<%endif~%>
<%if not config.reg_number~%>
<%set error = "You must enter a valid registration number before checking for updates. You can enter a registration number in the Setup -> Misc. Options menu."~%>
<%else~%>
<%Links::Update::check~%>
<%endif~%>
<%if error and update_error_code~%>
<%if update_error_code == 203~%>
<%set error .= "
You can reset the admin path stored on the Gossamer Threads update server a limited number of times from the licensed download area."~%>
<%endif~%>
<%endif~%>
<%set update_mode = 'install'~%>
Gossamer Links - Updates - Available Updates
<%include include_style.html%>
<%include update_style.html%>
<%include update_js.html%>