Merge branch 'master' into develop-0.9
This commit is contained in:
Коммит
3e1c6f31f9
|
@ -0,0 +1,103 @@
|
|||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
|
||||
---
|
||||
|
||||
### What is going wrong?
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
### Information about your polls installation
|
||||
**Polls version?** (see apps page)
|
||||
|
||||
**Fresh installation or update from a prior version (from which one)?**
|
||||
|
||||
**How did you install this version?(Appstore or describe installation)**
|
||||
|
||||
### Information about your Instance of Nextcloud/ownCloud
|
||||
**Nextcloud or ownCloud?**
|
||||
|
||||
**Which Version?**
|
||||
|
||||
**Nextcloud/ownCloud version:** (see Nextcloud admin page)
|
||||
|
||||
**List of activated apps:**
|
||||
|
||||
```
|
||||
If you have access to your command line run e.g.:
|
||||
sudo -u www-data php occ app:list
|
||||
from within your Nextcloud installation folder
|
||||
```
|
||||
**Nextcloud configuration:**
|
||||
|
||||
```
|
||||
If you have access to your command line run e.g.:
|
||||
sudo -u www-data php occ config:list system
|
||||
from within your Nextcloud installation folder
|
||||
|
||||
or
|
||||
|
||||
Insert your config.php content here
|
||||
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)
|
||||
```
|
||||
|
||||
### Server configuration
|
||||
<!--
|
||||
You can use the Issue Template application to prefill most of the required information: https://apps.nextcloud.com/apps/issuetemplate
|
||||
-->
|
||||
|
||||
**Operating system**:
|
||||
|
||||
**Web server:**
|
||||
|
||||
**Database:**
|
||||
|
||||
**PHP version:**
|
||||
|
||||
**Signing status:**
|
||||
|
||||
```
|
||||
Login as admin user into your Nextcloud and access
|
||||
http://example.com/index.php/settings/integrity/failed
|
||||
paste the results here.
|
||||
```
|
||||
|
||||
**Are you using an external user-backend, if yes which one:** LDAP/ActiveDirectory/Webdav/...
|
||||
|
||||
### Client configuration
|
||||
**Device:**
|
||||
Desktop/mobile phone/ tablet/...
|
||||
|
||||
**Browser:**
|
||||
|
||||
**Operating system:**
|
||||
|
||||
### Logs
|
||||
|
||||
#### Nextcloud log (data/nextcloud.log)
|
||||
```
|
||||
Insert your Nextcloud log here
|
||||
```
|
||||
|
||||
#### Browser log
|
||||
```
|
||||
Insert your browser log here, this could for example include:
|
||||
|
||||
a) The javascript console log
|
||||
b) The network log
|
||||
c) ...
|
||||
```
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
|
@ -18,7 +18,7 @@ addons:
|
|||
|
||||
env:
|
||||
global:
|
||||
- CORE_BRANCH=stable13
|
||||
- CORE_BRANCH=stable14
|
||||
- APP_NAME=polls
|
||||
matrix:
|
||||
- DB=mysql
|
||||
|
|
20
CHANGELOG.md
20
CHANGELOG.md
|
@ -29,6 +29,26 @@ All notable changes to this project will be documented in this file.
|
|||
|
||||
See https://github.com/nextcloud/polls/milestone/9?closed=1 for all changes and additions.
|
||||
|
||||
## [0.8.3] - 2018-08-30
|
||||
|
||||
### Added
|
||||
|
||||
### Changed
|
||||
|
||||
### Fixed
|
||||
- Display own participation in polls in list view
|
||||
|
||||
## [0.8.2] - 2018-08-25
|
||||
|
||||
### Added
|
||||
- Compatibility to NC 14 #360
|
||||
|
||||
### Changed
|
||||
|
||||
### Fixed
|
||||
- 'Edit poll' did not work from poll's details view #294
|
||||
- Reload of public polls with ownCloud 10 #344 #340 #283 #96
|
||||
|
||||
## [0.8.1] - 2018-01-19
|
||||
|
||||
### Added
|
||||
|
|
|
@ -1,19 +1,29 @@
|
|||
**Which Polls version are you running?** (see apps page)
|
||||
|
||||
**Nextcloud or ownCloud?:**
|
||||
|
||||
**Nextcloud/ownCloud version:** (see Nextcloud admin page)
|
||||
|
||||
### Steps to reproduce
|
||||
1.
|
||||
2.
|
||||
3.
|
||||
|
||||
### Expected behaviour
|
||||
Tell us what should happen
|
||||
|
||||
### Actual behaviour
|
||||
Tell us what happens instead
|
||||
Tell us what happens
|
||||
|
||||
### Expected behaviour
|
||||
Tell us what should happen instead
|
||||
|
||||
**In case of a bug, please answer the following questions**
|
||||
|
||||
### Server configuration
|
||||
<!--
|
||||
You can use the Issue Template application to prefill most of the required information: https://apps.nextcloud.com/apps/issuetemplate
|
||||
-->
|
||||
|
||||
**Where did you install Nextcloud from:**
|
||||
|
||||
**Operating system**:
|
||||
|
||||
**Web server:**
|
||||
|
@ -22,10 +32,6 @@ You can use the Issue Template application to prefill most of the required infor
|
|||
|
||||
**PHP version:**
|
||||
|
||||
**Nextcloud version:** (see Nextcloud admin page)
|
||||
|
||||
**Where did you install Nextcloud from:**
|
||||
|
||||
**Signing status:**
|
||||
|
||||
```
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
theme: jekyll-theme-slate
|
|
@ -163,6 +163,7 @@ $(document).ready(function () {
|
|||
});
|
||||
|
||||
$('#submit_finish_vote').click(function () {
|
||||
$(this).prop("disabled", true);
|
||||
var form = document.finish_vote;
|
||||
var ac = document.getElementById('user_name');
|
||||
if (ac !== null) {
|
||||
|
|
17
l10n/cs.js
17
l10n/cs.js
|
@ -1,13 +1,14 @@
|
|||
OC.L10N.register(
|
||||
"polls",
|
||||
{
|
||||
"Do you really want to delete that poll (new)?" : "Opravdu chcete smazat tento fond (nový)?",
|
||||
"Do you really want to delete that poll (new)?" : "Opravdu chcete smazat tuto anketu (novou)?",
|
||||
"Nothing selected!\nClick on cells to turn them green." : "Nic nevybráno! Kliknutím obarvěte buňky na zeleno.",
|
||||
"You must enter at least a title for the new poll." : "Je třeba zadat alespoň název nové ankety.",
|
||||
"Please select at least one user or group!" : "Vyberte prosím alespoň jednoho uživatele nebo skupinu!",
|
||||
"Copied!" : "Zkopírováno!",
|
||||
"Copy" : "Zkopírovat",
|
||||
"Not supported!" : "Nepodporováno!",
|
||||
"Press ⌘-C to copy." : "Pro zkopírování stiskněte ⌘-C.",
|
||||
"Press Ctrl-C to copy." : "Zkopírujte stiskem Ctrl-C.",
|
||||
"Copy to clipboard: Ctrl+C, Enter" : "Kopírovat do schránky: Ctrl + C, Enter",
|
||||
"You are not registered.\nPlease enter your name to vote\n(at least 3 characters)." : "Nejste registrováni.\nPro hlasování, prosím, zadejte své jméno\n(alespoň 3 znaky).",
|
||||
|
@ -16,7 +17,10 @@ OC.L10N.register(
|
|||
"An error occurred, your comment was not posted." : "Došlo k chybě, váš komentář nebyl odeslán.",
|
||||
"Polls" : "Ankety",
|
||||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Ahoj %s,<br/><br/><strong>%s</strong> hlasoval/a v anketě '%s'.<br/><br/>K přesunu přímo na anketu můžeš použít tento <a href=\"%s\">odkaz</a>",
|
||||
"Polls App - New Activity" : "Aplikace ankety - Nová akce",
|
||||
"Polls App" : "Aplikace ankety",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Aplikace pro ankety podobná doodle/dudle s možností omezit přístup.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Aplikace pro ankety podobná doodle/dudle s možností omezit přístup (členům, určitým skupinám/uživatelům, skryté i veřejné).",
|
||||
"Edit poll" : "Upravit anketu",
|
||||
"Create new poll" : "Vytvořit novou anketu",
|
||||
"Title" : "Název",
|
||||
|
@ -50,23 +54,28 @@ OC.L10N.register(
|
|||
"Expired" : "Platnost skončila",
|
||||
"Expires on %s" : "Platnost skončí %s",
|
||||
"Expires never" : "Nikdy neskončí",
|
||||
"Invitation access" : "Přístup k pozvánce",
|
||||
"Anononymous poll" : "Anonymní anketa",
|
||||
"Usernames hidden to Owner" : "Uživatelská jména skrytá vlastníkovi",
|
||||
"Usernames visible to Owner" : "Uživatelská jména viditelná vlastníkovi",
|
||||
"Click to get link" : "Klikněte pro získání odkazu",
|
||||
"Copy Link" : "Zkopírovat odkaz",
|
||||
"Delete poll" : "Smazat fond",
|
||||
"Edit Poll" : "Upravit fond",
|
||||
"Poll expired" : "Anketa vypršela",
|
||||
"Poll expired" : "Anketa je už uzavřena",
|
||||
"Comments" : "Komentáře",
|
||||
"Login or ..." : "Přihlásit nebo…",
|
||||
"New comment …" : "Nový komentář…",
|
||||
"No comments yet. Be the first." : "Zatím bez komentářů. Buďte první.",
|
||||
"No existing polls." : "Neexistují žádné ankety.",
|
||||
"By" : "Vytvořil",
|
||||
"By" : "Vytvořil(a)",
|
||||
"Created" : "Vytvořeno",
|
||||
"participated" : "zúčastnil se",
|
||||
"Yourself" : "Vy",
|
||||
"Never" : "Nikdy",
|
||||
"Access denied" : "Přístup zamítnut",
|
||||
"You are not allowed to view this poll or the poll does not exist." : "Nemáte oprávnění k zobrazení této ankety nebo anketa neexistuje."
|
||||
"You are not allowed to view this poll or the poll does not exist." : "Nemáte oprávnění k zobrazení této ankety nebo anketa neexistuje.",
|
||||
"You are not allowed to edit this poll or the poll does not exist." : "Nemáte oprávnění k úpravě této ankety nebo anketa neexistuje.",
|
||||
"You are not allowed to delete this poll or the poll does not exist." : "Nemáte oprávnění ke smazání této ankety nebo anketa neexistuje."
|
||||
},
|
||||
"nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;");
|
||||
|
|
17
l10n/cs.json
17
l10n/cs.json
|
@ -1,11 +1,12 @@
|
|||
{ "translations": {
|
||||
"Do you really want to delete that poll (new)?" : "Opravdu chcete smazat tento fond (nový)?",
|
||||
"Do you really want to delete that poll (new)?" : "Opravdu chcete smazat tuto anketu (novou)?",
|
||||
"Nothing selected!\nClick on cells to turn them green." : "Nic nevybráno! Kliknutím obarvěte buňky na zeleno.",
|
||||
"You must enter at least a title for the new poll." : "Je třeba zadat alespoň název nové ankety.",
|
||||
"Please select at least one user or group!" : "Vyberte prosím alespoň jednoho uživatele nebo skupinu!",
|
||||
"Copied!" : "Zkopírováno!",
|
||||
"Copy" : "Zkopírovat",
|
||||
"Not supported!" : "Nepodporováno!",
|
||||
"Press ⌘-C to copy." : "Pro zkopírování stiskněte ⌘-C.",
|
||||
"Press Ctrl-C to copy." : "Zkopírujte stiskem Ctrl-C.",
|
||||
"Copy to clipboard: Ctrl+C, Enter" : "Kopírovat do schránky: Ctrl + C, Enter",
|
||||
"You are not registered.\nPlease enter your name to vote\n(at least 3 characters)." : "Nejste registrováni.\nPro hlasování, prosím, zadejte své jméno\n(alespoň 3 znaky).",
|
||||
|
@ -14,7 +15,10 @@
|
|||
"An error occurred, your comment was not posted." : "Došlo k chybě, váš komentář nebyl odeslán.",
|
||||
"Polls" : "Ankety",
|
||||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Ahoj %s,<br/><br/><strong>%s</strong> hlasoval/a v anketě '%s'.<br/><br/>K přesunu přímo na anketu můžeš použít tento <a href=\"%s\">odkaz</a>",
|
||||
"Polls App - New Activity" : "Aplikace ankety - Nová akce",
|
||||
"Polls App" : "Aplikace ankety",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Aplikace pro ankety podobná doodle/dudle s možností omezit přístup.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Aplikace pro ankety podobná doodle/dudle s možností omezit přístup (členům, určitým skupinám/uživatelům, skryté i veřejné).",
|
||||
"Edit poll" : "Upravit anketu",
|
||||
"Create new poll" : "Vytvořit novou anketu",
|
||||
"Title" : "Název",
|
||||
|
@ -48,23 +52,28 @@
|
|||
"Expired" : "Platnost skončila",
|
||||
"Expires on %s" : "Platnost skončí %s",
|
||||
"Expires never" : "Nikdy neskončí",
|
||||
"Invitation access" : "Přístup k pozvánce",
|
||||
"Anononymous poll" : "Anonymní anketa",
|
||||
"Usernames hidden to Owner" : "Uživatelská jména skrytá vlastníkovi",
|
||||
"Usernames visible to Owner" : "Uživatelská jména viditelná vlastníkovi",
|
||||
"Click to get link" : "Klikněte pro získání odkazu",
|
||||
"Copy Link" : "Zkopírovat odkaz",
|
||||
"Delete poll" : "Smazat fond",
|
||||
"Edit Poll" : "Upravit fond",
|
||||
"Poll expired" : "Anketa vypršela",
|
||||
"Poll expired" : "Anketa je už uzavřena",
|
||||
"Comments" : "Komentáře",
|
||||
"Login or ..." : "Přihlásit nebo…",
|
||||
"New comment …" : "Nový komentář…",
|
||||
"No comments yet. Be the first." : "Zatím bez komentářů. Buďte první.",
|
||||
"No existing polls." : "Neexistují žádné ankety.",
|
||||
"By" : "Vytvořil",
|
||||
"By" : "Vytvořil(a)",
|
||||
"Created" : "Vytvořeno",
|
||||
"participated" : "zúčastnil se",
|
||||
"Yourself" : "Vy",
|
||||
"Never" : "Nikdy",
|
||||
"Access denied" : "Přístup zamítnut",
|
||||
"You are not allowed to view this poll or the poll does not exist." : "Nemáte oprávnění k zobrazení této ankety nebo anketa neexistuje."
|
||||
"You are not allowed to view this poll or the poll does not exist." : "Nemáte oprávnění k zobrazení této ankety nebo anketa neexistuje.",
|
||||
"You are not allowed to edit this poll or the poll does not exist." : "Nemáte oprávnění k úpravě této ankety nebo anketa neexistuje.",
|
||||
"You are not allowed to delete this poll or the poll does not exist." : "Nemáte oprávnění ke smazání této ankety nebo anketa neexistuje."
|
||||
},"pluralForm" :"nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;"
|
||||
}
|
|
@ -19,6 +19,8 @@ OC.L10N.register(
|
|||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Hallo %s, <br/> <br/> <strong> %s </strong> hat an der Umfrage '%s' teilgenommen. <br/> <br/> Um direkt zur Umfrage zu gelangen, <a href=\"%s\">bitte hier</a> klicken.",
|
||||
"Polls App - New Activity" : "Umfragen App - Neue Aktivität",
|
||||
"Polls App" : "Umfragen App",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Eine Umfrage-App, ähnlich wie Doodle/Dudle, mit der Möglichkeit Zugriffe zu beschränken.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Eine Umfrage-App, ähnlich wie Doodle/Dudle, mit der Möglichkeit Zugriffe zu beschränken (Versteckt/öffentlich oder bestimmte Gruppen/Benutzer/Mitglieder).",
|
||||
"Edit poll" : "Umfrage bearbeiten",
|
||||
"Create new poll" : "Neue Umfrage erstellen",
|
||||
"Title" : "Titel",
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Hallo %s, <br/> <br/> <strong> %s </strong> hat an der Umfrage '%s' teilgenommen. <br/> <br/> Um direkt zur Umfrage zu gelangen, <a href=\"%s\">bitte hier</a> klicken.",
|
||||
"Polls App - New Activity" : "Umfragen App - Neue Aktivität",
|
||||
"Polls App" : "Umfragen App",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Eine Umfrage-App, ähnlich wie Doodle/Dudle, mit der Möglichkeit Zugriffe zu beschränken.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Eine Umfrage-App, ähnlich wie Doodle/Dudle, mit der Möglichkeit Zugriffe zu beschränken (Versteckt/öffentlich oder bestimmte Gruppen/Benutzer/Mitglieder).",
|
||||
"Edit poll" : "Umfrage bearbeiten",
|
||||
"Create new poll" : "Neue Umfrage erstellen",
|
||||
"Title" : "Titel",
|
||||
|
|
|
@ -19,6 +19,8 @@ OC.L10N.register(
|
|||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Hallo %s,<br/><br/><strong>%s</strong> hat an der Umfrage '%s' teilgenommen.<br/><br/>Um direkt zur Umfrage zu gelangen können Sie diesen <a href=\"%s\">Link</a> benutzen.",
|
||||
"Polls App - New Activity" : "Umfragen App - Neue Aktivität",
|
||||
"Polls App" : "Umfragen App",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Eine Umfragen App ähnlich wie doodle/dudle mit der Möglichkeit den Zugriff zu beschränken.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Eine Umfragen App ähnlich wie doodle/dudle mit der Möglichkeit den Zugriff zu beschränken (Mitglieder, bestimmte Gruppen/Benutzer, versteckt und öffentlich).",
|
||||
"Edit poll" : "Umfrage bearbeiten",
|
||||
"Create new poll" : "Neue Umfrage erstellen",
|
||||
"Title" : "Titel",
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Hallo %s,<br/><br/><strong>%s</strong> hat an der Umfrage '%s' teilgenommen.<br/><br/>Um direkt zur Umfrage zu gelangen können Sie diesen <a href=\"%s\">Link</a> benutzen.",
|
||||
"Polls App - New Activity" : "Umfragen App - Neue Aktivität",
|
||||
"Polls App" : "Umfragen App",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Eine Umfragen App ähnlich wie doodle/dudle mit der Möglichkeit den Zugriff zu beschränken.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Eine Umfragen App ähnlich wie doodle/dudle mit der Möglichkeit den Zugriff zu beschränken (Mitglieder, bestimmte Gruppen/Benutzer, versteckt und öffentlich).",
|
||||
"Edit poll" : "Umfrage bearbeiten",
|
||||
"Create new poll" : "Neue Umfrage erstellen",
|
||||
"Title" : "Titel",
|
||||
|
|
|
@ -21,6 +21,7 @@ OC.L10N.register(
|
|||
"Create new poll" : "Δημιουργία νέας ψηφοφορίας",
|
||||
"Title" : "Τίτλος",
|
||||
"Description" : "Περιγραφή",
|
||||
"Access" : "Πρόσβαση",
|
||||
"Registered users only" : "Μόνο οι εγγεγραμμένοι χρήστες",
|
||||
"Public access" : "Δημόσια πρόσβαση",
|
||||
"Select" : "Επιλογή",
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
"Create new poll" : "Δημιουργία νέας ψηφοφορίας",
|
||||
"Title" : "Τίτλος",
|
||||
"Description" : "Περιγραφή",
|
||||
"Access" : "Πρόσβαση",
|
||||
"Registered users only" : "Μόνο οι εγγεγραμμένοι χρήστες",
|
||||
"Public access" : "Δημόσια πρόσβαση",
|
||||
"Select" : "Επιλογή",
|
||||
|
|
|
@ -19,6 +19,8 @@ OC.L10N.register(
|
|||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>",
|
||||
"Polls App - New Activity" : "Polls App - New Activity",
|
||||
"Polls App" : "Polls App",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "A polls app, similar to doodle/dudle with the possibility to restrict access.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public).",
|
||||
"Edit poll" : "Edit poll",
|
||||
"Create new poll" : "Create new poll",
|
||||
"Title" : "Title",
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>",
|
||||
"Polls App - New Activity" : "Polls App - New Activity",
|
||||
"Polls App" : "Polls App",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "A polls app, similar to doodle/dudle with the possibility to restrict access.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public).",
|
||||
"Edit poll" : "Edit poll",
|
||||
"Create new poll" : "Create new poll",
|
||||
"Title" : "Title",
|
||||
|
|
|
@ -19,6 +19,8 @@ OC.L10N.register(
|
|||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Hola, %s. <br/><br/><strong>%s</strong> ha participado en la votación '%s's. <br/><br/>Para ir directamente a la votación, puede usar este <a href=\"%s\">enlace</a>",
|
||||
"Polls App - New Activity" : "App de Encuestas - Nueva actividad",
|
||||
"Polls App" : "App Votaciones",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Una app de encuestas, similar a doodle/dudle, con la posibilidad de restringir el acceso.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Una app de encuestas, similar a doodle/dudle, con la posibilidad de restringir el acceso (miembros, ciertos grupos/usuarios, oculta y pública).",
|
||||
"Edit poll" : "Editar votación",
|
||||
"Create new poll" : "Crear nueva votación",
|
||||
"Title" : "Título",
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Hola, %s. <br/><br/><strong>%s</strong> ha participado en la votación '%s's. <br/><br/>Para ir directamente a la votación, puede usar este <a href=\"%s\">enlace</a>",
|
||||
"Polls App - New Activity" : "App de Encuestas - Nueva actividad",
|
||||
"Polls App" : "App Votaciones",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Una app de encuestas, similar a doodle/dudle, con la posibilidad de restringir el acceso.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Una app de encuestas, similar a doodle/dudle, con la posibilidad de restringir el acceso (miembros, ciertos grupos/usuarios, oculta y pública).",
|
||||
"Edit poll" : "Editar votación",
|
||||
"Create new poll" : "Crear nueva votación",
|
||||
"Title" : "Título",
|
||||
|
|
|
@ -19,6 +19,8 @@ OC.L10N.register(
|
|||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Bonjour %s, <br/><br/><strong>%s</strong> a participé au sondage «%s». <br/><br/> Pour accéder directement au sondage, vous pouvez utiliser ce <a href=\"%s\">lien</a>",
|
||||
"Polls App - New Activity" : "Application de sondages - Nouvelle activité",
|
||||
"Polls App" : "Application de sondages",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Une application de sondage, similaire à Doodle, avec la possibilité de restreindre l'accès.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Une application de sondage, similaire à Doodle, avec la possibilité de restreindre l'accès (membres, certain groupes/utilisateurs, caché et public).",
|
||||
"Edit poll" : "Modifier le sondage",
|
||||
"Create new poll" : "Créer un nouveau sondage",
|
||||
"Title" : "Titre",
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Bonjour %s, <br/><br/><strong>%s</strong> a participé au sondage «%s». <br/><br/> Pour accéder directement au sondage, vous pouvez utiliser ce <a href=\"%s\">lien</a>",
|
||||
"Polls App - New Activity" : "Application de sondages - Nouvelle activité",
|
||||
"Polls App" : "Application de sondages",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Une application de sondage, similaire à Doodle, avec la possibilité de restreindre l'accès.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Une application de sondage, similaire à Doodle, avec la possibilité de restreindre l'accès (membres, certain groupes/utilisateurs, caché et public).",
|
||||
"Edit poll" : "Modifier le sondage",
|
||||
"Create new poll" : "Créer un nouveau sondage",
|
||||
"Title" : "Titre",
|
||||
|
|
|
@ -19,6 +19,8 @@ OC.L10N.register(
|
|||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Hæ, %s,<br/><br/><strong>%s</strong> tók þátt í könnuninni '%s'.<br/><br/>Til að fara beint á könnunina, geturðu notað þennan <a href=\"%s\">tengil</a>",
|
||||
"Polls App - New Activity" : "Kannanaforrit - Ný virkni",
|
||||
"Polls App" : "Kannanaforrit",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Skoðanakannanaforrit sem svipar til doodle/dudle, með möguleika á aðgangstakmörkunum.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Skoðanakannanaforrit sem svipar til doodle/dudle, með möguleika á aðgangstakmörkunum (einungis meðlimir, ákveðnir hópar/notendur, falið eða opinbert).",
|
||||
"Edit poll" : "Breyta könnun",
|
||||
"Create new poll" : "Búa til nýja könnun",
|
||||
"Title" : "Titill",
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Hæ, %s,<br/><br/><strong>%s</strong> tók þátt í könnuninni '%s'.<br/><br/>Til að fara beint á könnunina, geturðu notað þennan <a href=\"%s\">tengil</a>",
|
||||
"Polls App - New Activity" : "Kannanaforrit - Ný virkni",
|
||||
"Polls App" : "Kannanaforrit",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Skoðanakannanaforrit sem svipar til doodle/dudle, með möguleika á aðgangstakmörkunum.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Skoðanakannanaforrit sem svipar til doodle/dudle, með möguleika á aðgangstakmörkunum (einungis meðlimir, ákveðnir hópar/notendur, falið eða opinbert).",
|
||||
"Edit poll" : "Breyta könnun",
|
||||
"Create new poll" : "Búa til nýja könnun",
|
||||
"Title" : "Titill",
|
||||
|
|
|
@ -19,6 +19,7 @@ OC.L10N.register(
|
|||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Hallo %s,<br/><br/><strong>%s</strong> heeft deelgenomen aan de peiling '%s'.<br/><br/>Om direct naar de peiling te gaan gebruik je deze <a href=\"%s\">link</a>",
|
||||
"Polls App - New Activity" : "Peilingen App - Nieuwe Activiteit",
|
||||
"Polls App" : "Peilingen App",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Een peilingenapp, net als doodle/dudle met de mogelijkheid om toegang te beperken.",
|
||||
"Edit poll" : "Peiling bijwerken",
|
||||
"Create new poll" : "Nieuwe peiling aanmaken",
|
||||
"Title" : "Titel",
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Hallo %s,<br/><br/><strong>%s</strong> heeft deelgenomen aan de peiling '%s'.<br/><br/>Om direct naar de peiling te gaan gebruik je deze <a href=\"%s\">link</a>",
|
||||
"Polls App - New Activity" : "Peilingen App - Nieuwe Activiteit",
|
||||
"Polls App" : "Peilingen App",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Een peilingenapp, net als doodle/dudle met de mogelijkheid om toegang te beperken.",
|
||||
"Edit poll" : "Peiling bijwerken",
|
||||
"Create new poll" : "Nieuwe peiling aanmaken",
|
||||
"Title" : "Titel",
|
||||
|
|
17
l10n/pl.js
17
l10n/pl.js
|
@ -1,6 +1,7 @@
|
|||
OC.L10N.register(
|
||||
"polls",
|
||||
{
|
||||
"Do you really want to delete that poll (new)?" : "Czy na pewno chcesz usunąć tę sondę?",
|
||||
"Nothing selected!\nClick on cells to turn them green." : "Nie wybrano żadnej opcji\nKliknij w komórki aby aktywować.",
|
||||
"You must enter at least a title for the new poll." : "Musisz podać co najmniej tytuł dla nowej sondy.",
|
||||
"Please select at least one user or group!" : "Wybierz co najmniej jednego użytkownika lub grupę!",
|
||||
|
@ -13,11 +14,13 @@ OC.L10N.register(
|
|||
"You are not registered.\nPlease enter your name to vote\n(at least 3 characters)." : "Nie jesteś zarejestrowany.\nPodaj proszę imię aby zagłosować\n(co najmniej 3 znaki)",
|
||||
"Please add some text to your comment before submitting it." : "Dodaj jakiś tekst do Twojego komentarza przed jego wysłaniem.",
|
||||
"just now" : "Właśnie teraz",
|
||||
"An error occurred, your comment was not posted." : "Wystąpił błąd, Twój komentarz nie został wysłany...",
|
||||
"An error occurred, your comment was not posted." : "Wystąpił błąd, Twój komentarz nie został wysłany…",
|
||||
"Polls" : "Sondy",
|
||||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Witaj %s, <br/><br/><strong>%s</strong> zagłosował(a) w sondzie '%s'.<br/><br/> Aby przejść bezpośrednio do sondy, kliknij w ten <a href=\"%s\">link</a>",
|
||||
"Polls App - New Activity" : "Aplikacja Sondy - Nowa aktywność",
|
||||
"Polls App" : "Aplikacja Sondy",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Aplikacja ankietowa przypominająca doodle/dudle z możliwością ograniczania dostępu.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Aplikacja ankietowa przypominająca doodle/dudle z możliwością ograniczania dostępu (członkowie, określone grupy/użytkownicy, ukryte i publiczne).",
|
||||
"Edit poll" : "Edytuj sondę",
|
||||
"Create new poll" : "Stwórz nową sondę",
|
||||
"Title" : "Tytuł",
|
||||
|
@ -41,6 +44,7 @@ OC.L10N.register(
|
|||
"Cancel" : "Anuluj",
|
||||
"No description provided." : "Nie podano opisu.",
|
||||
"The poll expired on %s. Voting is disabled, but you can still comment." : "Sonda wygasła %s. Głosowanie zablokowane, ale ciągle możesz wpisywać komentarze.",
|
||||
"Switch all options at once" : "Przełącz wszystkie opcje jednocześnie",
|
||||
"Your name here" : "Twoje imię",
|
||||
"Vote!" : "Głosuj!",
|
||||
"Receive notification email on activity" : "Odbieraj powiadomienia email o aktywności",
|
||||
|
@ -50,15 +54,18 @@ OC.L10N.register(
|
|||
"Expired" : "Wygasło",
|
||||
"Expires on %s" : "Wygaśnie o %s",
|
||||
"Expires never" : "Nigdy nie wygasa",
|
||||
"Invitation access" : "Dostęp na zaproszenie",
|
||||
"Anononymous poll" : "Sonda anonimowa",
|
||||
"Usernames hidden to Owner" : "Nazwy użytkownika ukryte dla właściciela",
|
||||
"Usernames visible to Owner" : "Nazwy użytkownika widoczne dla właściciela",
|
||||
"Click to get link" : "Kliknij aby pobrać odnośnik",
|
||||
"Copy Link" : "Skopiuj link",
|
||||
"Delete poll" : "Usuń sondę",
|
||||
"Edit Poll" : "Edytuj sondę",
|
||||
"Poll expired" : "Sonda wygasła",
|
||||
"Comments" : "Komentarze",
|
||||
"Login or ..." : "Login lub ...",
|
||||
"New comment …" : "Nowy komentarz...",
|
||||
"Login or ..." : "Login lub…",
|
||||
"New comment …" : "Nowy komentarz…",
|
||||
"No comments yet. Be the first." : "Jeszcze brak komentarzy. Bądź pierwszy!",
|
||||
"No existing polls." : "Brak sond",
|
||||
"By" : "Przez",
|
||||
|
@ -67,6 +74,8 @@ OC.L10N.register(
|
|||
"Yourself" : "Przez siebie",
|
||||
"Never" : "Nigdy",
|
||||
"Access denied" : "Dostęp zabroniony",
|
||||
"You are not allowed to view this poll or the poll does not exist." : "Nie masz uprawnień do tej sondy lub sonda nie istnieje."
|
||||
"You are not allowed to view this poll or the poll does not exist." : "Nie masz uprawnień do tej sondy lub sonda nie istnieje.",
|
||||
"You are not allowed to edit this poll or the poll does not exist." : "Nie masz uprawnień do edycji tej ankiety lub ankieta nie istnieje.",
|
||||
"You are not allowed to delete this poll or the poll does not exist." : "Nie masz uprawnień do usunięcia tej ankiety lub ankieta nie istnieje."
|
||||
},
|
||||
"nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);");
|
||||
|
|
17
l10n/pl.json
17
l10n/pl.json
|
@ -1,4 +1,5 @@
|
|||
{ "translations": {
|
||||
"Do you really want to delete that poll (new)?" : "Czy na pewno chcesz usunąć tę sondę?",
|
||||
"Nothing selected!\nClick on cells to turn them green." : "Nie wybrano żadnej opcji\nKliknij w komórki aby aktywować.",
|
||||
"You must enter at least a title for the new poll." : "Musisz podać co najmniej tytuł dla nowej sondy.",
|
||||
"Please select at least one user or group!" : "Wybierz co najmniej jednego użytkownika lub grupę!",
|
||||
|
@ -11,11 +12,13 @@
|
|||
"You are not registered.\nPlease enter your name to vote\n(at least 3 characters)." : "Nie jesteś zarejestrowany.\nPodaj proszę imię aby zagłosować\n(co najmniej 3 znaki)",
|
||||
"Please add some text to your comment before submitting it." : "Dodaj jakiś tekst do Twojego komentarza przed jego wysłaniem.",
|
||||
"just now" : "Właśnie teraz",
|
||||
"An error occurred, your comment was not posted." : "Wystąpił błąd, Twój komentarz nie został wysłany...",
|
||||
"An error occurred, your comment was not posted." : "Wystąpił błąd, Twój komentarz nie został wysłany…",
|
||||
"Polls" : "Sondy",
|
||||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Witaj %s, <br/><br/><strong>%s</strong> zagłosował(a) w sondzie '%s'.<br/><br/> Aby przejść bezpośrednio do sondy, kliknij w ten <a href=\"%s\">link</a>",
|
||||
"Polls App - New Activity" : "Aplikacja Sondy - Nowa aktywność",
|
||||
"Polls App" : "Aplikacja Sondy",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Aplikacja ankietowa przypominająca doodle/dudle z możliwością ograniczania dostępu.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Aplikacja ankietowa przypominająca doodle/dudle z możliwością ograniczania dostępu (członkowie, określone grupy/użytkownicy, ukryte i publiczne).",
|
||||
"Edit poll" : "Edytuj sondę",
|
||||
"Create new poll" : "Stwórz nową sondę",
|
||||
"Title" : "Tytuł",
|
||||
|
@ -39,6 +42,7 @@
|
|||
"Cancel" : "Anuluj",
|
||||
"No description provided." : "Nie podano opisu.",
|
||||
"The poll expired on %s. Voting is disabled, but you can still comment." : "Sonda wygasła %s. Głosowanie zablokowane, ale ciągle możesz wpisywać komentarze.",
|
||||
"Switch all options at once" : "Przełącz wszystkie opcje jednocześnie",
|
||||
"Your name here" : "Twoje imię",
|
||||
"Vote!" : "Głosuj!",
|
||||
"Receive notification email on activity" : "Odbieraj powiadomienia email o aktywności",
|
||||
|
@ -48,15 +52,18 @@
|
|||
"Expired" : "Wygasło",
|
||||
"Expires on %s" : "Wygaśnie o %s",
|
||||
"Expires never" : "Nigdy nie wygasa",
|
||||
"Invitation access" : "Dostęp na zaproszenie",
|
||||
"Anononymous poll" : "Sonda anonimowa",
|
||||
"Usernames hidden to Owner" : "Nazwy użytkownika ukryte dla właściciela",
|
||||
"Usernames visible to Owner" : "Nazwy użytkownika widoczne dla właściciela",
|
||||
"Click to get link" : "Kliknij aby pobrać odnośnik",
|
||||
"Copy Link" : "Skopiuj link",
|
||||
"Delete poll" : "Usuń sondę",
|
||||
"Edit Poll" : "Edytuj sondę",
|
||||
"Poll expired" : "Sonda wygasła",
|
||||
"Comments" : "Komentarze",
|
||||
"Login or ..." : "Login lub ...",
|
||||
"New comment …" : "Nowy komentarz...",
|
||||
"Login or ..." : "Login lub…",
|
||||
"New comment …" : "Nowy komentarz…",
|
||||
"No comments yet. Be the first." : "Jeszcze brak komentarzy. Bądź pierwszy!",
|
||||
"No existing polls." : "Brak sond",
|
||||
"By" : "Przez",
|
||||
|
@ -65,6 +72,8 @@
|
|||
"Yourself" : "Przez siebie",
|
||||
"Never" : "Nigdy",
|
||||
"Access denied" : "Dostęp zabroniony",
|
||||
"You are not allowed to view this poll or the poll does not exist." : "Nie masz uprawnień do tej sondy lub sonda nie istnieje."
|
||||
"You are not allowed to view this poll or the poll does not exist." : "Nie masz uprawnień do tej sondy lub sonda nie istnieje.",
|
||||
"You are not allowed to edit this poll or the poll does not exist." : "Nie masz uprawnień do edycji tej ankiety lub ankieta nie istnieje.",
|
||||
"You are not allowed to delete this poll or the poll does not exist." : "Nie masz uprawnień do usunięcia tej ankiety lub ankieta nie istnieje."
|
||||
},"pluralForm" :"nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);"
|
||||
}
|
|
@ -47,7 +47,7 @@ OC.L10N.register(
|
|||
"Switch all options at once" : "Mude todas as opções ao mesmo tempo",
|
||||
"Your name here" : "Seu nome aqui",
|
||||
"Vote!" : "Vote!",
|
||||
"Receive notification email on activity" : "Receber email notificando atividade",
|
||||
"Receive notification email on activity" : "Receber e-mail notificando atividade",
|
||||
"Close details" : "Fechar detalhes",
|
||||
"Close" : "Fechar",
|
||||
"Owner" : "Proprietário",
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
"Switch all options at once" : "Mude todas as opções ao mesmo tempo",
|
||||
"Your name here" : "Seu nome aqui",
|
||||
"Vote!" : "Vote!",
|
||||
"Receive notification email on activity" : "Receber email notificando atividade",
|
||||
"Receive notification email on activity" : "Receber e-mail notificando atividade",
|
||||
"Close details" : "Fechar detalhes",
|
||||
"Close" : "Fechar",
|
||||
"Owner" : "Proprietário",
|
||||
|
|
|
@ -19,6 +19,8 @@ OC.L10N.register(
|
|||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Приветствую %s! <br/><br/><strong>%s</strong> принял(а) участие в опросе «%s».<br/><br/>Для перехода к опросу нажмите <a href=\"%s\">здесь</a>.",
|
||||
"Polls App - New Activity" : "Приложение опросов — Новые события",
|
||||
"Polls App" : "Приложение опросов",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Приложение опросов, похожее на doodle / dudle с возможностью ограничения доступа.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Приложение опросов, похожее на doodle / dudle с возможностью ограничения доступа (участники, определенные группы и/или пользователи, скрытые и публичные).",
|
||||
"Edit poll" : "Редактировать опрос",
|
||||
"Create new poll" : "Создать новый опрос",
|
||||
"Title" : "Название",
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Приветствую %s! <br/><br/><strong>%s</strong> принял(а) участие в опросе «%s».<br/><br/>Для перехода к опросу нажмите <a href=\"%s\">здесь</a>.",
|
||||
"Polls App - New Activity" : "Приложение опросов — Новые события",
|
||||
"Polls App" : "Приложение опросов",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Приложение опросов, похожее на doodle / dudle с возможностью ограничения доступа.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Приложение опросов, похожее на doodle / dudle с возможностью ограничения доступа (участники, определенные группы и/или пользователи, скрытые и публичные).",
|
||||
"Edit poll" : "Редактировать опрос",
|
||||
"Create new poll" : "Создать новый опрос",
|
||||
"Title" : "Название",
|
||||
|
|
|
@ -19,6 +19,8 @@ OC.L10N.register(
|
|||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Поздрав %s,<br/><br/><strong>%s</strong> је учествовао у гласању '%s'.<br/><br/> Да одете директно на гласање, можете користити ову <a href=\"%s\">везу</a>",
|
||||
"Polls App - New Activity" : "Апликација Гласања - Нова активност",
|
||||
"Polls App" : "Апликација Гласања",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Апликација за гласање, слична као doodle/dudle, са могућношћу забране приступа.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Апликација за гласање, слична као doodle/dudle, са могућношћу забране приступа (чланова, група/корисника, скривено и јавно),",
|
||||
"Edit poll" : "Измени гласање",
|
||||
"Create new poll" : "Направи ново гласање",
|
||||
"Title" : "Наслов",
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
"Hello %s,<br/><br/><strong>%s</strong> participated in the poll '%s'.<br/><br/>To go directly to the poll, you can use this <a href=\"%s\">link</a>" : "Поздрав %s,<br/><br/><strong>%s</strong> је учествовао у гласању '%s'.<br/><br/> Да одете директно на гласање, можете користити ову <a href=\"%s\">везу</a>",
|
||||
"Polls App - New Activity" : "Апликација Гласања - Нова активност",
|
||||
"Polls App" : "Апликација Гласања",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Апликација за гласање, слична као doodle/dudle, са могућношћу забране приступа.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Апликација за гласање, слична као doodle/dudle, са могућношћу забране приступа (чланова, група/корисника, скривено и јавно),",
|
||||
"Edit poll" : "Измени гласање",
|
||||
"Create new poll" : "Направи ново гласање",
|
||||
"Title" : "Наслов",
|
||||
|
|
|
@ -70,6 +70,9 @@ OC.L10N.register(
|
|||
"participated" : "deltog",
|
||||
"Yourself" : "Du själv",
|
||||
"Never" : "Aldrig",
|
||||
"Access denied" : "Tillgång nekades"
|
||||
"Access denied" : "Tillgång nekades",
|
||||
"You are not allowed to view this poll or the poll does not exist." : "Du får inte se den här pollen eller så existerar den inte.",
|
||||
"You are not allowed to edit this poll or the poll does not exist." : "Du får inte redigera den här pollen eller så existerar den inte.",
|
||||
"You are not allowed to delete this poll or the poll does not exist." : "Du får inte radera den här pollen eller så existerar den inte."
|
||||
},
|
||||
"nplurals=2; plural=(n != 1);");
|
||||
|
|
|
@ -68,6 +68,9 @@
|
|||
"participated" : "deltog",
|
||||
"Yourself" : "Du själv",
|
||||
"Never" : "Aldrig",
|
||||
"Access denied" : "Tillgång nekades"
|
||||
"Access denied" : "Tillgång nekades",
|
||||
"You are not allowed to view this poll or the poll does not exist." : "Du får inte se den här pollen eller så existerar den inte.",
|
||||
"You are not allowed to edit this poll or the poll does not exist." : "Du får inte redigera den här pollen eller så existerar den inte.",
|
||||
"You are not allowed to delete this poll or the poll does not exist." : "Du får inte radera den här pollen eller så existerar den inte."
|
||||
},"pluralForm" :"nplurals=2; plural=(n != 1);"
|
||||
}
|
|
@ -22,7 +22,7 @@ OC.L10N.register(
|
|||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Doodle/Dudle benzeri, erişim kısıtlama özelliği bulunan bir anket uygulamasıdır.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Doodle/Dudle benzeri, erişim kısıtlama özelliği (üyeler, belirli grup ve kullanıcılar, gizli ve herkese açık gibi) bulunan bir anket uygulamasıdır.",
|
||||
"Edit poll" : "Anketi düzenle",
|
||||
"Create new poll" : "Yeni anket ekle",
|
||||
"Create new poll" : "Anket ekle",
|
||||
"Title" : "Başlık",
|
||||
"Description" : "Açıklama",
|
||||
"Access" : "Erişim",
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
"A polls app, similar to doodle/dudle with the possibility to restrict access." : "Doodle/Dudle benzeri, erişim kısıtlama özelliği bulunan bir anket uygulamasıdır.",
|
||||
"A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public)." : "Doodle/Dudle benzeri, erişim kısıtlama özelliği (üyeler, belirli grup ve kullanıcılar, gizli ve herkese açık gibi) bulunan bir anket uygulamasıdır.",
|
||||
"Edit poll" : "Anketi düzenle",
|
||||
"Create new poll" : "Yeni anket ekle",
|
||||
"Create new poll" : "Anket ekle",
|
||||
"Title" : "Başlık",
|
||||
"Description" : "Açıklama",
|
||||
"Access" : "Erişim",
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
$color-main-background: #fff;
|
||||
$color-border: #ebebeb;
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
#content-wrapper {
|
||||
padding-top: unset;
|
||||
}
|
||||
|
||||
#content {
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
display: flex;
|
||||
padding-top: 45px;
|
||||
min-height: 100%;
|
||||
height: unset;
|
||||
width: unset;
|
||||
}
|
||||
|
||||
#app-content {
|
||||
position: initial;
|
||||
height: initial;
|
||||
overflow-y: initial;
|
||||
flex-basis: 100vw;
|
||||
}
|
||||
|
||||
#content[class*="app-"] * {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#controls {
|
||||
position: sticky;
|
||||
top: 45px;
|
||||
right: unset;
|
||||
left: unset;
|
||||
display: flex;
|
||||
height: 40px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
z-index: 60;
|
||||
position: webkit-sticky;
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
@import '../css-oc-fixes/oc-container-fix.scss';
|
||||
@import '../../css/createpoll.scss';
|
|
@ -0,0 +1 @@
|
|||
@import '../../css/flex.scss';
|
|
@ -0,0 +1,3 @@
|
|||
@import '../css-oc-fixes/oc-colors-fix.scss';
|
||||
@import '../css-oc-fixes/oc-container-fix.scss';
|
||||
@import '../../css/list.scss';
|
|
@ -0,0 +1 @@
|
|||
@import '../../css/main.scss';
|
|
@ -0,0 +1 @@
|
|||
@import '../../css/public.scss';
|
|
@ -0,0 +1,2 @@
|
|||
@import '../css-oc-fixes/oc-colors-fix.scss';
|
||||
@import '../../css/sidebar.scss';
|
|
@ -0,0 +1,2 @@
|
|||
@import '../css-oc-fixes/oc-container-fix.scss';
|
||||
@import '../../css/vote.scss';
|
|
@ -28,11 +28,11 @@
|
|||
\OCP\Util::addStyle('polls', 'vote');
|
||||
\OCP\Util::addStyle('polls', 'sidebar');
|
||||
if (!User::isLoggedIn()) {
|
||||
\OCP\Util::addStyle('polls', 'public');
|
||||
Util::addStyle('polls', 'public');
|
||||
}
|
||||
|
||||
\OCP\Util::addScript('polls', 'app');
|
||||
\OCP\Util::addScript('polls', 'vote');
|
||||
Util::addScript('polls', 'app');
|
||||
Util::addScript('polls', 'vote');
|
||||
|
||||
$userId = $_['userId'];
|
||||
/** @var \OCP\IUserManager $userMgr */
|
||||
|
@ -109,14 +109,17 @@
|
|||
|
||||
<div id="app-content" class="<?php p($statusClass . ' ' . $pollTypeClass . ' ' . $maybe); ?>">
|
||||
<div id="controls" class="controls">
|
||||
|
||||
<div id="breadcrump" class="breadcrump">
|
||||
<?php if (User::isLoggedIn()) : ?>
|
||||
|
||||
<?php if (User::isLoggedIn()) : ?>
|
||||
<div class="crumb svg">
|
||||
<a href="<?php p($urlGenerator->linkToRoute('polls.page.index')); ?>">
|
||||
<img class="svg" src="<?php print_unescaped(\OCP\Template::image_path('core', 'places/home.svg')); ?>" alt="Home">
|
||||
<img class="svg" src="<?php print_unescaped(Template::image_path('core', 'places/home.svg')); ?>" alt="Home">
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="crumb svg last">
|
||||
<span><?php p($poll->getTitle()); ?></span>
|
||||
</div>
|
||||
|
@ -134,45 +137,47 @@
|
|||
</a>
|
||||
</div>
|
||||
|
||||
<div id="votings" class="main-container">
|
||||
<div class="wordwrap description"><span><?php print_unescaped($description); ?></span>
|
||||
<?php
|
||||
if ($expired) {
|
||||
print_unescaped('<span class="' . $statusClass . '">' . $l->t('The poll expired on %s. Voting is disabled, but you can still comment.', array(date('d.m.Y H:i', strtotime($poll->getExpire())))) . '</span>');
|
||||
}?>
|
||||
d<div id="votings" class="main-container">
|
||||
<div class="wordwrap description">
|
||||
<span>
|
||||
<?php print_unescaped($description); ?>
|
||||
</span>
|
||||
<?php if ($expired) { print_unescaped('<span class="' . $statusClass . '">' . $l->t('The poll expired on %s. Voting is disabled, but you can still comment.', array(date('d.m.Y H:i', strtotime($poll->getExpire())))) . '</span>'); }?>
|
||||
</div>
|
||||
<div class="table">
|
||||
<ul class="flex-row header" >
|
||||
<?php
|
||||
foreach ($options as $optionElement) {
|
||||
if ($poll->getType() === 0) {
|
||||
print_unescaped('<li id="slot_' . $optionElement->getId() . '" title="' . $optionElement->getPollOptionText() . ' ' . date_default_timezone_get() . '" class="flex-column vote time has-tooltip" data-timestamp="' . $timestamp . '"data-value-utc="' . $optionElement->getPollOptionText() . '">');
|
||||
|
||||
$timestamp = strtotime($optionElement->getPollOptionText());
|
||||
print_unescaped(' <div class="date-box flex-column">');
|
||||
print_unescaped(' <div class="month">' . $l->t(date('M', $timestamp)) . '</div>');
|
||||
print_unescaped(' <div class="day">' . date('j', $timestamp) . '</div>');
|
||||
print_unescaped(' <div class="dayow">' . $l->t(date('D', $timestamp)) . '</div>');
|
||||
print_unescaped(' <div class="time">' . date('G:i', $timestamp) . ' UTC</div>');
|
||||
print_unescaped(' </div>');
|
||||
} else {
|
||||
print_unescaped('<li id="slot_' . $optionElement->getId() . '" title="' . $optionElement->getPollOptionText() . '" class="flex-column vote option">');
|
||||
print_unescaped(' <div class="date-box flex-column">' . $optionElement->getPollOptionText() . '</div>');
|
||||
}
|
||||
print_unescaped('<div class="counter flex-row">');
|
||||
print_unescaped(' <div class="yes flex-row">');
|
||||
print_unescaped(' <div class="svg"></div>');
|
||||
print_unescaped(' <div id="counter_yes_voteid_' . $optionElement->getId() . '" class ="result-cell yes" data-voteId="' . $optionElement->getId() . '">0</div>');
|
||||
<div class="table">
|
||||
<ul class="flex-row header" >
|
||||
<?php
|
||||
foreach ($options as $optionElement) {
|
||||
if ($poll->getType() === 0) {
|
||||
print_unescaped('<li id="slot_' . $optionElement->getId() . '" title="' . $optionElement->getPollOptionText() . ' ' . date_default_timezone_get() . '" class="flex-column vote time has-tooltip" data-timestamp="' . $timestamp . '"data-value-utc="' . $optionElement->getPollOptionText() . '">');
|
||||
|
||||
$timestamp = strtotime($optionElement->getPollOptionText());
|
||||
print_unescaped(' <div class="date-box flex-column">');
|
||||
print_unescaped(' <div class="month">' . $l->t(date('M', $timestamp)) . '</div>');
|
||||
print_unescaped(' <div class="day">' . date('j', $timestamp) . '</div>');
|
||||
print_unescaped(' <div class="dayow">' . $l->t(date('D', $timestamp)) . '</div>');
|
||||
print_unescaped(' <div class="time">' . date('G:i', $timestamp) . ' UTC</div>');
|
||||
print_unescaped(' </div>');
|
||||
print_unescaped(' <div class="no flex-row">');
|
||||
print_unescaped(' <div class="svg"></div>');
|
||||
print_unescaped(' <div id="counter_no_voteid_' . $optionElement->getId() . '" class ="result-cell no" data-voteId="' . $optionElement->getId() . '">0</div>');
|
||||
print_unescaped(' </div>');
|
||||
print_unescaped('</div>');
|
||||
} else {
|
||||
print_unescaped('<li id="slot_' . $optionElement->getId() . '" title="' . $optionElement->getPollOptionText() . '" class="flex-column vote option">');
|
||||
print_unescaped(' <div class="date-box flex-column">' . $optionElement->getPollOptionText() . '</div>');
|
||||
}
|
||||
?>
|
||||
</li>
|
||||
</ul>
|
||||
print_unescaped('<div class="counter flex-row">');
|
||||
print_unescaped(' <div class="yes flex-row">');
|
||||
print_unescaped(' <div class="svg"></div>');
|
||||
print_unescaped(' <div id="counter_yes_voteid_' . $optionElement->getId() . '" class ="result-cell yes" data-voteId="' . $optionElement->getId() . '">0</div>');
|
||||
print_unescaped(' </div>');
|
||||
print_unescaped(' <div class="no flex-row">');
|
||||
print_unescaped(' <div class="svg"></div>');
|
||||
print_unescaped(' <div id="counter_no_voteid_' . $optionElement->getId() . '" class ="result-cell no" data-voteId="' . $optionElement->getId() . '">0</div>');
|
||||
print_unescaped(' </div>');
|
||||
print_unescaped('</div>');
|
||||
}
|
||||
?>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul class="flex-column table-body">
|
||||
<?php
|
||||
if ($votes !== null) {
|
||||
|
@ -231,7 +236,7 @@
|
|||
foreach ($others[$usr] as $vote) {
|
||||
if ($optionElement->getPollOptionText() === $vote->getVoteOptionText()) {
|
||||
$class = $vote->getVoteAnswer();
|
||||
break;
|
||||
break;
|
||||
}
|
||||
$class = 'no';
|
||||
}
|
||||
|
@ -277,7 +282,7 @@
|
|||
foreach ($userVoted as $vote) {
|
||||
if ($optionElement->getPollOptionText() === $vote->getVoteOptionText()) {
|
||||
$class = $vote->getVoteAnswer();
|
||||
break;
|
||||
break;
|
||||
} else {
|
||||
$class = 'unvoted';
|
||||
}
|
||||
|
@ -299,11 +304,12 @@
|
|||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php if ($updatedPoll) : ?>
|
||||
<div class="updated-poll alert">
|
||||
|
||||
<?php if ($updatedPoll) : ?>
|
||||
<div class="updated-poll alert">
|
||||
<p> <?php p($l->t('This poll was updated since your last visit. Please check your votes.')); ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="submitPoll flex-row">
|
||||
<div>
|
||||
|
@ -317,12 +323,14 @@
|
|||
<input type="button" id="submit_finish_vote" class="button btn primary" value="<?php p($l->t('Vote!')); ?>" />
|
||||
</form>
|
||||
</div>
|
||||
<?php if (User::isLoggedIn()) : ?>
|
||||
|
||||
<?php if (User::isLoggedIn()) : ?>
|
||||
<div class="notification">
|
||||
<input type="checkbox" id="check_notif" class="checkbox" <?php if ($notification !== null) print_unescaped(' checked'); ?> />
|
||||
<label for="check_notif"><?php p($l->t('Receive notification email on activity')); ?></label>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -394,30 +402,31 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($expired) : ?>
|
||||
<div id="expired_info">
|
||||
<h2><?php p($l->t('Poll expired')); ?></h2>
|
||||
<p>
|
||||
<?php p($l->t('The poll expired on %s. Voting is disabled, but you can still comment.', array(date('d.m.Y H:i', strtotime($poll->getExpire()))))); ?>
|
||||
</p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($expired) : ?>
|
||||
<div id="expired_info">
|
||||
<h2><?php p($l->t('Poll expired')); ?></h2>
|
||||
<p>
|
||||
<?php p($l->t('The poll expired on %s. Voting is disabled, but you can still comment.', array(date('d.m.Y H:i', strtotime($poll->getExpire()))))); ?>
|
||||
</p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<ul class="tabHeaders">
|
||||
<li class="tabHeader selected" data-tabid="commentsTabView" data-tabindex="0">
|
||||
<a href="#"><?php p($l->t('Comments')); ?></a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tabsContainer">
|
||||
<div id="commentsTabView" class="tab commentsTabView">
|
||||
<div class="newCommentRow comment new-comment">
|
||||
<?php if (User::isLoggedIn()) : ?>
|
||||
|
||||
<?php if (User::isLoggedIn()) : ?>
|
||||
<div class="authorRow user-cell flex-row">
|
||||
<div class="avatar has-tooltip" title="<?php p($userId)?>"></div>
|
||||
<div class="author"><?php p($userId) ?></div>
|
||||
</div>
|
||||
|
||||
<?php else: ?>
|
||||
<?php else: ?>
|
||||
<a href="<?php p($urlGenerator->linkToRouteAbsolute('core.login.showLoginForm')); ?>"><?php p($l->t('Login or ...')); ?></a>
|
||||
<div class="authorRow user-cell flex-row">
|
||||
<div class="avatar has-tooltip" title="?"></div>
|
||||
|
@ -425,7 +434,8 @@
|
|||
<input type="text" name="user_name_comm" id="user_name_comm" placeholder="<?php p($l->t('Your name here')); ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<form class="newCommentForm flex-row" name="send_comment" action="<?php p($urlGenerator->linkToRoute('polls.page.insert_comment')); ?>" method="POST">
|
||||
<input type="hidden" name="pollId" value="<?php p($poll->getId()); ?>" />
|
||||
<input type="hidden" name="userId" value="<?php p($userId); ?>" />
|
||||
|
@ -477,7 +487,7 @@
|
|||
<div class="authorRow user-cell flex-row">
|
||||
<div class="avatar has-tooltip" title="<?php p($avatarName)?>"></div>
|
||||
<div class="author"><?php p($displayName) ?></div>
|
||||
<div class="date has-tooltip live-relative-timestamp datespan" data-timestamp="<?php p(strtotime($comment->getDt()) * 1000); ?>" title="<?php p($comment->getDt()) ?>"><?php p(\OCP\Template::relative_modified_date(strtotime($comment->getDt()))) ?></div>
|
||||
<div class="date has-tooltip live-relative-timestamp datespan" data-timestamp="<?php p(strtotime($comment->getDt()) * 1000); ?>" title="<?php p($comment->getDt()) ?>"><?php p(Template::relative_modified_date(strtotime($comment->getDt()))) ?></div>
|
||||
</div>
|
||||
<div class="message wordwrap comment-content"><?php p($comment->getComment()); ?></div>
|
||||
</li>
|
||||
|
@ -485,6 +495,6 @@
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<form id="form_delete_poll" name="form_delete_poll" action="<?php p($urlGenerator->linkToRoute('polls.page.delete_poll')); ?>" method="POST"></form>
|
||||
</div>
|
||||
|
||||
<form id="form_delete_poll" name="form_delete_poll" action="<?php p($urlGenerator->linkToRoute('polls.page.delete_poll')); ?>" method="POST"></form>
|
||||
|
|
|
@ -22,11 +22,12 @@
|
|||
*/
|
||||
|
||||
use OCP\User; //To do: replace according to API
|
||||
use OCP\Util;
|
||||
use OCP\Template;
|
||||
|
||||
\OCP\Util::addStyle('polls', 'main');
|
||||
\OCP\Util::addStyle('polls', 'list');
|
||||
\OCP\Util::addScript('polls', 'app');
|
||||
\OCP\Util::addScript('polls', 'start');
|
||||
Util::addStyle('polls', 'list');
|
||||
Util::addScript('polls', 'app');
|
||||
Util::addScript('polls', 'start');
|
||||
|
||||
$userId = $_['userId'];
|
||||
/** @var \OCP\IUserManager $userMgr */
|
||||
|
@ -38,175 +39,177 @@
|
|||
?>
|
||||
|
||||
<div id="app-content">
|
||||
<div id="app-content-wrapper">
|
||||
<div id="controls">
|
||||
<div class="breadcrump">
|
||||
<div class="crumb svg last">
|
||||
<a href="<?php p($urlGenerator->linkToRoute('polls.page.index')); ?>">
|
||||
<img class="svg" src="<?php print_unescaped(\OCP\Template::image_path('core', 'places/home.svg')); ?>" alt="Home">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="actions creatable" style="">
|
||||
<a href="<?php p($urlGenerator->linkToRoute('polls.page.create_poll')); ?>" class="button new">
|
||||
<span class="symbol icon-add"></span><span class="hidden-visually">Neu</span>
|
||||
</a>
|
||||
<input class="stop icon-close" style="display:none" value="" type="button">
|
||||
</div>
|
||||
<div id="controls">
|
||||
<div class="breadcrump">
|
||||
<div class="crumb svg last">
|
||||
<a href="<?php p($urlGenerator->linkToRoute('polls.page.index')); ?>">
|
||||
<img class="svg" src="<?php print_unescaped(Template::image_path('core', 'places/home.svg')); ?>" alt="Home">
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="actions creatable" style="">
|
||||
<a href="<?php p($urlGenerator->linkToRoute('polls.page.create_poll')); ?>" class="button new">
|
||||
<span class="symbol icon-add"></span><span class="hidden-visually">Neu</span>
|
||||
</a>
|
||||
<input class="stop icon-close" style="display:none" value="" type="button">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (count($_['polls']) === 0) : ?>
|
||||
<div id="emptycontent" class="">
|
||||
<div class="icon-polls"></div>
|
||||
<h2><?php p($l->t('No existing polls.')); ?></h2>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<div class="table main-container has-controls">
|
||||
<div class ="table-row table-header">
|
||||
|
||||
<div class="wrapper group-master">
|
||||
<div class="wrapper group-1">
|
||||
<div class="wrapper group-1-1">
|
||||
<div class="flex-column name"> <?php p($l->t('Title')); ?></div>
|
||||
</div>
|
||||
<div class="wrapper group-1-2">
|
||||
<div class="flex-column actions"></div>
|
||||
</div>
|
||||
<div class="table main-container has-controls">
|
||||
<div class ="table-row table-header">
|
||||
<div class="wrapper group-master">
|
||||
<div class="wrapper group-1">
|
||||
<div class="wrapper group-1-1">
|
||||
<div class="flex-column name"> <?php p($l->t('Title')); ?></div>
|
||||
</div>
|
||||
<div class="wrapper group-2">
|
||||
<div class="flex-column owner"> <?php p($l->t('By')); ?></div>
|
||||
<div class="wrapper group-2-1">
|
||||
<div class="flex-column access"> <?php p($l->t('Access')); ?></div>
|
||||
<div class="flex-column created"> <?php p($l->t('Created')); ?></div>
|
||||
</div>
|
||||
<div class="wrapper group-2-2">
|
||||
<div class="flex-column expiry"> <?php p($l->t('Expires')); ?></div>
|
||||
<div class="flex-column participants"> <?php p($l->t('participated')); ?></div>
|
||||
</div>
|
||||
<div class="wrapper group-1-2">
|
||||
<div class="flex-column actions"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrapper group-2">
|
||||
<div class="flex-column owner"> <?php p($l->t('By')); ?></div>
|
||||
<div class="wrapper group-2-1">
|
||||
<div class="flex-column access"> <?php p($l->t('Access')); ?></div>
|
||||
<div class="flex-column created"> <?php p($l->t('Created')); ?></div>
|
||||
</div>
|
||||
<div class="wrapper group-2-2">
|
||||
<div class="flex-column expiry"> <?php p($l->t('Expires')); ?></div>
|
||||
<div class="flex-column participants"> <?php p($l->t('participated')); ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php foreach ($polls as $poll) : ?>
|
||||
<?php
|
||||
if (!userHasAccess($poll, $userId)) {
|
||||
continue;
|
||||
}
|
||||
// direct url to poll
|
||||
$pollUrl = $urlGenerator->linkToRouteAbsolute('polls.page.goto_poll', array('hash' => $poll->getHash()));
|
||||
$owner = $poll->getOwner();
|
||||
<?php foreach ($polls as $poll) : ?>
|
||||
|
||||
$expiry_style = '';
|
||||
$participated = $_['votes'];
|
||||
$participated_class = 'partic_no';
|
||||
$participated_title = 'You did not vote';
|
||||
$participated_count = count($participated);
|
||||
<?php
|
||||
if (!userHasAccess($poll, $userId)) {
|
||||
continue;
|
||||
}
|
||||
// direct url to poll
|
||||
$pollUrl = $urlGenerator->linkToRouteAbsolute('polls.page.goto_poll', array('hash' => $poll->getHash()));
|
||||
$owner = $poll->getOwner();
|
||||
|
||||
$comments = $_['comments'];
|
||||
$commented_class = 'commented_no';
|
||||
$commented_title = 'You did not comment';
|
||||
$commented_count = count($comments);
|
||||
$expiry_style = '';
|
||||
if ($poll->getType() === 0) {
|
||||
$participated = $_['participations'];
|
||||
} else {
|
||||
$participated = $_['participations_text'];
|
||||
}
|
||||
$participated_class = 'partic_no';
|
||||
$participated_title = 'You did not vote';
|
||||
$participated_count = count($participated);
|
||||
|
||||
if ($owner === $userId) {
|
||||
$owner = $l->t('Yourself');
|
||||
}
|
||||
$comments = $_['comments'];
|
||||
$commented_class = 'commented_no';
|
||||
$commented_title = 'You did not comment';
|
||||
$commented_count = count($comments);
|
||||
|
||||
$timestamp_style = '';
|
||||
$expiry_style = ' endless';
|
||||
$expiry_date = $l->t('Never');
|
||||
if ($owner === $userId) {
|
||||
$owner = $l->t('Yourself');
|
||||
}
|
||||
|
||||
if ($poll->getExpire() !== null) {
|
||||
$expiry_date = \OCP\Template::relative_modified_date(strtotime($poll->getExpire())); // does not work, because relative_modified_date seems not to recognise future time diffs
|
||||
$expiry_style = ' progress';
|
||||
$timestamp_style = ' live-relative-timestamp';
|
||||
if (date('U') > strtotime($poll->getExpire())) {
|
||||
$expiry_date = \OCP\Template::relative_modified_date(strtotime($poll->getExpire()));
|
||||
$expiry_style = ' expired';
|
||||
}
|
||||
}
|
||||
|
||||
for ($i = 0; $i < count($participated); $i++) {
|
||||
if ($poll->getId() === $participated[$i]->getPollId()) {
|
||||
$participated_class = 'partic_yes';
|
||||
$participated_title = 'You voted in this poll';
|
||||
array_splice($participated, $i, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
$timestamp_style = '';
|
||||
$expiry_style = ' endless';
|
||||
$expiry_date = $l->t('Never');
|
||||
|
||||
for ($i = 0; $i < count($comments); $i++) {
|
||||
if ($poll->getId() === $comments[$i]->getPollId()) {
|
||||
$commented_class = 'commented_yes';
|
||||
$commented_title = 'You commented this poll';
|
||||
array_splice($comments, $i, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
?>
|
||||
if ($poll->getExpire() !== null) {
|
||||
$expiry_date = Template::relative_modified_date(strtotime($poll->getExpire())); // does not work, because relative_modified_date seems not to recognise future time diffs
|
||||
$expiry_style = ' progress';
|
||||
$timestamp_style = ' live-relative-timestamp';
|
||||
if (date('U') > strtotime($poll->getExpire())) {
|
||||
$expiry_date = Template::relative_modified_date(strtotime($poll->getExpire()));
|
||||
$expiry_style = ' expired';
|
||||
}
|
||||
}
|
||||
|
||||
<div class="table-row table-body">
|
||||
<div class="wrapper group-master">
|
||||
<div class="wrapper group-1">
|
||||
<div class="thumbnail <?php p($expiry_style . ' ' . $commented_class . ' ' . $participated_class); ?>"></div><!-- Image to display the status or type of poll -->
|
||||
<a href="<?php p($pollUrl); ?>" class="wrapper group-1-1">
|
||||
<div class="flex-column name"> <?php p($poll->getTitle()); ?></div>
|
||||
<div class="flex-column description"> <?php p($poll->getDescription()); ?></div>
|
||||
</a>
|
||||
<div class="flex-column actions">
|
||||
<div class="icon-more popupmenu" value="<?php p($poll->getId()); ?>" id="expand_<?php p($poll->getId()); ?>"></div>
|
||||
<div class="popovermenu bubble menu hidden" id="expanddiv_<?php p($poll->getId()); ?>">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="menuitem alt-tooltip copy-link has-tooltip action permanent" data-toggle="tooltip" data-clipboard-text="<?php p($pollUrl); ?>" title="<?php p($l->t('Click to get link')); ?>" href="#">
|
||||
<span class="icon-clippy"></span>
|
||||
<span><?php p($l->t('Copy Link')); ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php if ($poll->getOwner() === $userId) : ?>
|
||||
<li>
|
||||
<a id="id_del_<?php p($poll->getId()); ?>" class="menuitem alt-tooltip delete-poll action permanent" data-value="<?php p($poll->getTitle()); ?>" href="#">
|
||||
<span class="icon-delete"></span>
|
||||
<span><?php p($l->t('Delete poll')); ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="id_edit_<?php p($poll->getId()); ?>" class="menuitem action permanent" href="<?php p($urlGenerator->linkToRoute('polls.page.edit_poll', ['hash' => $poll->getHash()])); ?>">
|
||||
<span class="icon-rename"></span>
|
||||
<span><?php p($l->t('Edit Poll')); ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
for ($i = 0; $i < count($participated); $i++) {
|
||||
if ($poll->getId() === $participated[$i]->getPollId()) {
|
||||
$participated_class = 'partic_yes';
|
||||
$participated_title = 'You voted in this poll';
|
||||
array_splice($participated, $i, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
</div>
|
||||
for ($i = 0; $i < count($comments); $i++) {
|
||||
if ($poll->getId() === $comments[$i]->getPollId()) {
|
||||
$commented_class = 'commented_yes';
|
||||
$commented_title = 'You commented this poll';
|
||||
array_splice($comments, $i, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<div class="table-row table-body">
|
||||
<div class="wrapper group-master">
|
||||
<div class="wrapper group-1">
|
||||
<div class="thumbnail <?php p($expiry_style . ' ' . $commented_class . ' ' . $participated_class); ?>"></div><!-- Image to display the status or type of poll -->
|
||||
<a href="<?php p($pollUrl); ?>" class="wrapper group-1-1">
|
||||
<div class="flex-column name"> <?php p($poll->getTitle()); ?></div>
|
||||
<div class="flex-column description"> <?php p($poll->getDescription()); ?></div>
|
||||
</a>
|
||||
<div class="flex-column actions">
|
||||
<div class="icon-more popupmenu" value="<?php p($poll->getId()); ?>" id="expand_<?php p($poll->getId()); ?>"></div>
|
||||
<div class="popovermenu bubble menu hidden" id="expanddiv_<?php p($poll->getId()); ?>">
|
||||
<ul>
|
||||
<li>
|
||||
<a class="menuitem alt-tooltip copy-link has-tooltip action permanent" data-toggle="tooltip" data-clipboard-text="<?php p($pollUrl); ?>" title="<?php p($l->t('Click to get link')); ?>" href="#">
|
||||
<span class="icon-clippy"></span>
|
||||
<span>Copy Link</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php if ($poll->getOwner() === $userId) : ?>
|
||||
<li>
|
||||
<a id="id_del_<?php p($poll->getId()); ?>" class="menuitem alt-tooltip delete-poll action permanent" data-value="<?php p($poll->getTitle()); ?>" href="#">
|
||||
<span class="icon-delete"></span>
|
||||
<span>Delete poll</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a id="id_edit_<?php p($poll->getId()); ?>" class="menuitem action permanent" href="<?php p($urlGenerator->linkToRoute('polls.page.edit_poll', ['hash' => $poll->getHash()])); ?>">
|
||||
<span class="icon-rename"></span>
|
||||
<span>Edit Poll</span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="wrapper group-2">
|
||||
<div class="flex-column owner">
|
||||
<div class="avatardiv" title="<?php p($poll->getOwner()); ?>" style="height: 32px; width: 32px;"></div>
|
||||
<div class="name-cell"><?php p($owner); ?></div>
|
||||
</div>
|
||||
<div class="wrapper group-2-1">
|
||||
<div class="flex-column access"><?php p($l->t($poll->getAccess())); ?></div>
|
||||
<div class="flex-column created has-tooltip live-relative-timestamp" data-timestamp="<?php p(strtotime($poll->getCreated()) * 1000); ?>" data-value="<?php p($poll->getCreated()); ?>"><?php p(\OCP\Template::relative_modified_date(strtotime($poll->getCreated()))); ?></div>
|
||||
</div>
|
||||
<div class="wrapper group-2-2">
|
||||
<div class="flex-column has-tooltip expiry<?php p($expiry_style . $timestamp_style); ?>" data-timestamp="<?php p(strtotime($poll->getExpire()) * 1000); ?>" data-value="<?php p($poll->getExpire()); ?>"> <?php p($expiry_date); ?></div>
|
||||
<div class="flex-column participants">
|
||||
<div class="symbol alt-tooltip partic_voted icon-<?php p($participated_class); ?>" title="<?php p($participated_title); ?>"></div>
|
||||
<div class="symbol alt-tooltip partic_commented icon-<?php p($commented_class); ?>" title="<?php p($commented_title); ?>"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<div class="wrapper group-2">
|
||||
<div class="flex-column owner">
|
||||
<div class="avatardiv" title="<?php p($poll->getOwner()); ?>" style="height: 32px; width: 32px;"></div>
|
||||
<div class="name-cell"><?php p($owner); ?></div>
|
||||
</div>
|
||||
<div class="wrapper group-2-1">
|
||||
<div class="flex-column access"><?php p($l->t($poll->getAccess())); ?></div>
|
||||
<div class="flex-column created has-tooltip live-relative-timestamp" data-timestamp="<?php p(strtotime($poll->getCreated()) * 1000); ?>" data-value="<?php p($poll->getCreated()); ?>"><?php p(Template::relative_modified_date(strtotime($poll->getCreated()))); ?></div>
|
||||
</div>
|
||||
<div class="wrapper group-2-2">
|
||||
<div class="flex-column has-tooltip expiry<?php p($expiry_style . $timestamp_style); ?>" data-timestamp="<?php p(strtotime($poll->getExpire()) * 1000); ?>" data-value="<?php p($poll->getExpire()); ?>"> <?php p($expiry_date); ?></div>
|
||||
<div class="flex-column participants">
|
||||
<div class="symbol alt-tooltip partic_voted icon-<?php p($participated_class); ?>" title="<?php p($participated_title); ?>"></div>
|
||||
<div class="symbol alt-tooltip partic_commented icon-<?php p($commented_class); ?>" title="<?php p($commented_title); ?>"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<form id="form_delete_poll" name="form_delete_poll" action="<?php p($urlGenerator->linkToRoute('polls.page.delete_poll')); ?>" method="POST"></form>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form id="form_delete_poll" name="form_delete_poll" action="<?php p($urlGenerator->linkToRoute('polls.page.delete_poll')); ?>" method="POST"></form>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<?php
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
\OCP\Util::addStyle('polls', 'main');
|
||||
use OCP\Util;
|
||||
Util::addStyle('polls', 'main');
|
||||
?>
|
||||
<div id="app">
|
||||
<div id="app-content">
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
\OCP\Util::addStyle('polls', 'main');
|
||||
use OCP\Util;
|
||||
Util::addStyle('polls', 'main');
|
||||
?>
|
||||
<div id="app">
|
||||
<div id="app-content">
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
\OCP\Util::addStyle('polls', 'main');
|
||||
use OCP\Util;
|
||||
Util::addStyle('polls', 'main');
|
||||
?>
|
||||
<div id="app">
|
||||
<div id="app-content">
|
||||
|
|
Загрузка…
Ссылка в новой задаче