Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
342
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
27
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
TransFem.org
Sharkey
Commits
7b733143
Commit
7b733143
authored
7 years ago
by
こぴなたみぽ
Browse files
Options
Downloads
Patches
Plain Diff
wip
parent
fda3ba4e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/web/app/common/-tags/special-message.tag
+0
-27
0 additions, 27 deletions
src/web/app/common/-tags/special-message.tag
src/web/app/common/views/components/special-message.vue
+42
-0
42 additions, 0 deletions
src/web/app/common/views/components/special-message.vue
with
42 additions
and
27 deletions
src/web/app/common/-tags/special-message.tag
deleted
100644 → 0
+
0
−
27
View file @
fda3ba4e
<mk-special-message>
<p v-if="m == 1 && d == 1">%i18n:common.tags.mk-special-message.new-year%</p>
<p v-if="m == 12 && d == 25">%i18n:common.tags.mk-special-message.christmas%</p>
<style lang="stylus" scoped>
:scope
display block
&:empty
display none
> p
margin 0
padding 4px
text-align center
font-size 14px
font-weight bold
text-transform uppercase
color #fff
background #ff1036
</style>
<script lang="typescript">
const now = new Date();
this.d = now.getDate();
this.m = now.getMonth() + 1;
</script>
</mk-special-message>
This diff is collapsed.
Click to expand it.
src/web/app/common/views/components/special-message.vue
0 → 100644
+
42
−
0
View file @
7b733143
<
template
>
<div
class=
"mk-special-message"
>
<p
v-if=
"m == 1 && d == 1"
>
%i18n:common.tags.mk-special-message.new-year%
</p>
<p
v-if=
"m == 12 && d == 25"
>
%i18n:common.tags.mk-special-message.christmas%
</p>
</div>
</
template
>
<
script
lang=
"ts"
>
import
Vue
from
'
vue
'
;
export
default
Vue
.
extend
({
data
()
{
return
{
now
:
new
Date
()
};
},
computed
:
{
d
():
number
{
return
now
.
getDate
();
},
m
():
number
{
return
now
.
getMonth
()
+
1
;
}
}
});
</
script
>
<
style
lang=
"stylus"
scoped
>
.mk-special-message
&:empty
display none
> p
margin 0
padding 4px
text-align center
font-size 14px
font-weight bold
text-transform uppercase
color #fff
background #ff1036
</
style
>
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