Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale_OLD
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
jovuit
funkwhale_OLD
Commits
2fb533c5
Verified
Commit
2fb533c5
authored
7 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Maxlength and truncation
parent
6e4fb2e5
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/components/requests/Form.vue
+7
-5
7 additions, 5 deletions
front/src/components/requests/Form.vue
with
7 additions
and
5 deletions
front/src/components/requests/Form.vue
+
7
−
5
View file @
2fb533c5
...
...
@@ -4,16 +4,16 @@
<p>
Something's missing in the library? Let us know what you would like to listen!
</p>
<div
class=
"required field"
>
<label>
Artist name
</label>
<input
v-model=
"currentArtistName"
placeholder=
"The Beatles, Mickael Jackson…"
required
>
<input
v-model=
"currentArtistName"
placeholder=
"The Beatles, Mickael Jackson…"
required
maxlength=
"200"
>
</div>
<div
class=
"field"
>
<label>
Albums
</label>
<p>
Leave this field empty if you're requesting the whole discography.
</p>
<input
v-model=
"currentAlbums"
placeholder=
"The White Album, Thriller…"
>
<input
v-model=
"currentAlbums"
placeholder=
"The White Album, Thriller…"
maxlength=
"2000"
>
</div>
<div
class=
"field"
>
<label>
Comment
</label>
<textarea
v-model=
"currentComment"
rows=
"3"
placeholder=
"Use this comment box to add details to your request if needed"
></textarea>
<textarea
v-model=
"currentComment"
rows=
"3"
placeholder=
"Use this comment box to add details to your request if needed"
maxlength=
"2000"
></textarea>
</div>
<button
class=
"ui submit button"
type=
"submit"
>
Submit
</button>
</form>
...
...
@@ -29,8 +29,10 @@
<div
v-for=
"request in requests"
class=
"item"
>
<div
class=
"content"
>
<div
class=
"header"
>
{{
request
.
artist_name
}}
</div>
<div
v-if=
"request.albums"
class=
"description"
>
{{
truncate
(
request
.
albums
,
50
)
}}
</div>
<div
v-if=
"request.comment"
class=
"description"
>
{{
truncate
(
request
.
comment
,
50
)
}}
</div>
<div
v-if=
"request.albums"
class=
"description"
>
{{
request
.
albums
|
truncate
}}
</div>
<div
v-if=
"request.comment"
class=
"description"
>
{{
request
.
comment
|
truncate
}}
</div>
</div>
</div>
</div>
...
...
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