Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zwordi
funkwhale
Commits
56a5a5ed
Commit
56a5a5ed
authored
6 years ago
by
Jo Vuit
Browse files
Options
Downloads
Patches
Plain Diff
Added context strings for i18n
parent
5758ab4c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
front/src/views/playlists/List.vue
+10
-10
10 additions, 10 deletions
front/src/views/playlists/List.vue
with
10 additions
and
10 deletions
front/src/views/playlists/List.vue
+
10
−
10
View file @
56a5a5ed
<
template
>
<main
v-title=
"labels.playlists"
>
<section
class=
"ui vertical stripe segment"
>
<h2
class=
"ui header"
><translate>
Browsing playlists
</translate></h2>
<h2
class=
"ui header"
><translate
:translate-context=
"'Content/Playlist/Title'"
>
Browsing playlists
</translate></h2>
<div
:class=
"['ui',
{'loading': isLoading}, 'form']">
<template
v-if=
"$store.state.auth.authenticated"
>
<button
@
click=
"$store.commit('playlists/chooseTrack', null)"
class=
"ui basic green button"
><translate>
Manage your playlists
</translate></button>
class=
"ui basic green button"
><translate
:translate-context=
"'Content/Playlist/Button.Label/Verb'"
>
Manage your playlists
</translate></button>
<div
class=
"ui hidden divider"
></div>
</
template
>
<div
class=
"fields"
>
<div
class=
"field"
>
<label><translate>
Search
</translate></label>
<label><translate
:translate-context=
"'Content/*/Form.Label/Short, Name'"
>
Search
</translate></label>
<input
type=
"text"
name=
"search"
v-model=
"query"
:placeholder=
"labels.searchPlaceholder"
/>
</div>
<div
class=
"field"
>
<label><translate>
Ordering
</translate></label>
<label><translate
:translate-context=
"'Content/*/Dropdown.Label/Short, Name'"
>
Ordering
</translate></label>
<select
class=
"ui dropdown"
v-model=
"ordering"
>
<option
v-for=
"option in orderingOptions"
:value=
"option[0]"
>
{{ sharedLabels.filters[option[1]] }}
...
...
@@ -23,14 +23,14 @@
</select>
</div>
<div
class=
"field"
>
<label><translate>
Order
</translate></label>
<label><translate
:translate-context=
"'Content/*/Dropdown.Label/Short, Name'"
>
Order
</translate></label>
<select
class=
"ui dropdown"
v-model=
"orderingDirection"
>
<option
value=
"+"
><translate>
Ascending
</translate></option>
<option
value=
"-"
><translate>
Descending
</translate></option>
<option
value=
"+"
><translate
:translate-context=
"'Content/*/Dropdown/Short'"
>
Ascending
</translate></option>
<option
value=
"-"
><translate
:translate-context=
"'Content/*/Dropdown/Short'"
>
Descending
</translate></option>
</select>
</div>
<div
class=
"field"
>
<label><translate>
Results per page
</translate></label>
<label><translate
:translate-context=
"'Content/*/Dropdown.Label/Short, Name'"
>
Results per page
</translate></label>
<select
class=
"ui dropdown"
v-model=
"paginateBy"
>
<option
:value=
"parseInt(12)"
>
12
</option>
<option
:value=
"parseInt(25)"
>
25
</option>
...
...
@@ -103,8 +103,8 @@ export default {
},
computed
:
{
labels
()
{
let
playlists
=
this
.
$gettext
(
"
Playlists
"
)
let
searchPlaceholder
=
this
.
$gettext
(
"
Enter playlist name…
"
)
let
playlists
=
this
.
$
p
gettext
(
'
Head/Playlist/Title/Name
'
,
'
Playlists
'
)
let
searchPlaceholder
=
this
.
$
p
gettext
(
'
Content/Playlist/Placeholder/Call to action
'
,
'
Enter playlist name…
'
)
return
{
playlists
,
searchPlaceholder
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment