Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
le-inep-bar
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
le6
le-inep-bar
Commits
f9f5f615
Commit
f9f5f615
authored
Dec 12, 2018
by
legton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SCRUM#642
: Desativa a extensao na versao particular
parent
4fe81278
Pipeline
#18833
passed with stages
in 6 minutes and 38 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
package/debian/changelog
package/debian/changelog
+6
-0
package/le-inep-bar@c3sl.ufpr.br/extension.js
package/le-inep-bar@c3sl.ufpr.br/extension.js
+17
-1
No files found.
package/debian/changelog
View file @
f9f5f615
le-inep-bar (1.0.1) unstable; urgency=medium
* Deactivates the extension in the "Particular" version of LE (Closes: #642)
-- legton <lesuporte@c3sl.ufpr.br> Wed, 12 Dec 2018 06:58:19 -0200
le-inep-bar (1.0.0) unstable; urgency=medium
* Initial release (Closes: #608)
...
...
package/le-inep-bar@c3sl.ufpr.br/extension.js
View file @
f9f5f615
...
...
@@ -29,6 +29,16 @@ const St = imports.gi.St;
let
button
,
label
,
infoBox
,
text
;
let
escola
,
inep
,
color
,
textoInfo
;
function
isParticular
()
{
var
getVersion
=
'
cat /etc/default/version || true
'
;
version
=
GLib
.
spawn_command_line_sync
(
getVersion
)[
1
].
toString
();
version
=
version
.
trim
();
if
(
version
==
"
Particular
"
)
{
return
true
;
}
return
false
;
}
// Gets the school name if the file exists
function
getSchool
()
{
var
getInep
=
'
cat /opt/seed_mec/SEED2/client/conf/inep || true
'
;
...
...
@@ -53,13 +63,19 @@ function getSchool() {
escola
=
'
INEP AINDA NÃO INSERIDO!
'
;
color
=
'
red
'
;
textoInfo
=
'
CLIQUE AQUI PARA INSERIR O NÚMERO DO INEP
'
;
Main
.
notify
(
'
O INEP da sua escola ainda não foi configurado!
'
);
if
(
!
isParticular
())
{
Main
.
notify
(
'
O INEP da sua escola ainda não foi configurado!
'
);
}
}
}
// Gets the name on start
getSchool
();
if
(
isParticular
())
{
disable
();
}
function
init
()
{
button
=
new
St
.
Bin
({
style_class
:
'
inep-label
'
,
...
...
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