Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CSU
tweeki
Commits
e3366cb2
Commit
e3366cb2
authored
May 17, 2020
by
Tobias Haider
Browse files
edit keyboard shortcut for EDIT-EXT, fixes #159
parent
2b3a3e1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
components/edit.less
View file @
e3366cb2
...
...
@@ -2,23 +2,23 @@
/**
* EDIT BUTTON
*/
#
ca-edit-ext {
[name=
ca-edit-ext
]
{
display:inline-block;
-moz-box-sizing:border-box;
box-sizing:border-box;
}
#
ca-edit-ext + a {
[name=
ca-edit-ext
]
+ a {
display:inline-block;
-moz-box-sizing:border-box;
box-sizing:border-box;
margin-top:0;
margin-top:0
!important
;
}
.sidebar-wrapper
#
ca-edit-ext {
.sidebar-wrapper
[name=
ca-edit-ext
]
{
width:85%;
}
.sidebar-wrapper
#
ca-edit-ext + a {
.sidebar-wrapper
[name=
ca-edit-ext
]
+ a {
width:15%;
}
includes/TweekiTemplate.php
View file @
e3366cb2
...
...
@@ -220,9 +220,10 @@ class TweekiTemplate extends BaseTemplate {
$button
=
[
'href'
=>
$link
[
'href'
],
'href_implicit'
=>
false
,
'id'
=>
'ca-edit
-ext
'
,
'id'
=>
'ca-edit'
,
'icon'
=>
'pencil'
,
'text'
=>
wfMessage
(
'tweeki-edit-ext'
,
$this
->
data
[
'namespace'
]
)
->
plain
()
'text'
=>
wfMessage
(
'tweeki-edit-ext'
,
$this
->
data
[
'namespace'
]
)
->
plain
(),
'name'
=>
'ca-edit-ext'
];
$button
[
'items'
]
=
$views
;
if
(
count
(
$this
->
data
[
'action_urls'
])
>
0
)
{
...
...
Write
Preview
Supports
Markdown
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