Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
TelcoDB
Web Frontend
Commits
f5be4533
Verified
Commit
f5be4533
authored
Oct 22, 2019
by
Elias Ojala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show basic details about an IXP
parent
619cf3dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
src/controllers/ix.controller.ts
src/controllers/ix.controller.ts
+2
-0
views/ix/show.twig
views/ix/show.twig
+12
-0
No files found.
src/controllers/ix.controller.ts
View file @
f5be4533
...
...
@@ -17,6 +17,8 @@ router.get("/:ix_id", (req: Request, res: Response, next: NextFunction) => {
id
:
ixId
,
data
,
// dataRaw: JSON.stringify(data, null, 2),
})
})
.
catch
(
err
=>
{
...
...
views/ix/show.twig
View file @
f5be4533
...
...
@@ -2,4 +2,16 @@
{%
block
body
%}
<h1>
{{
data.name
}}
</h1>
<ul>
<li>
Operator:
<a
href=
"https://peeringdb.com/org/
{{
data.org.id
}}
"
>
{{
data.org.name
}}
</a></li>
<li>
Website:
<a
href=
"
{{
data.website
}}
"
>
{{
data.website
}}
</a></li>
<li>
Statistics:
<a
href=
"
{{
data.url_stats
}}
"
>
{{
data.url_stats
}}
</a></li>
<li>
Country:
{{
data.country
}}
</li>
<li>
Continent:
{{
data.region_continent
}}
</li>
</ul>
{# <pre><code>{{ dataRaw }}</code></pre> #}
{%
endblock
%}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment