Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
whats-open-android
Commits
8eb3a281
Commit
8eb3a281
authored
Feb 23, 2017
by
Robert Hitt
Browse files
Changed issue templates to conform to other projects
parent
45d7a483
Pipeline
#939
passed with stages
in 9 minutes
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab/issue_templates/Bug.md
View file @
8eb3a281
## Expected Behavior
Describe briefly what the app should be doing or, what the expected behavior would
be given a certain input or action.
## Actual Behavior
Describe briefly what actually occurs in the app given the input described above.
## Steps to Reproduce the Behavior
## Helpful links
(if applicable)
A numbered list of steps starting from the earliest possible moment up until the
bug occurs. Something that could be used by other developers to reproduce the bug
that is being reported.
.gitlab/issue_templates/Default.md
View file @
8eb3a281
## Summary
Include several sentences explaining the issue (rationale,
implementation ideas, mock-ups, etc). Be concise.
Here you should include two to three sentences explaining the thought process
about the current issue. Perhaps a picture? Some details that could best help someone,
especially someone new, understand the goal of the issue and how they should best
approach the problem.
## Helpful Links
Give a bulleted list of resources that could help one tackle this
issue. Try to be as helpful as possible.
Here you should include a bullet point list of links to documentation, stack overflow,
whatever, that could help guide someone on what it is they are trying to do.
Essentially, a list of links to point them in the right direction.
app/src/main/java/srct/whatsopen/presenters/FacilityPresenter.java
View file @
8eb3a281
...
...
@@ -70,8 +70,9 @@ public class FacilityPresenter {
// Parses the schedule into an HTML string
// Kind of a hacky approach
// Parses the schedule into an HTML string.
// Kind of a hacky approach. That being said, this is certainly a lot simpler to test
// than the alternative.
public
String
getSchedule
(
Facility
facility
,
Calendar
now
)
{
RealmList
<
OpenTimes
>
openTimesList
=
getActiveSchedule
(
facility
,
now
);
int
currentDay
=
(
5
+
now
.
get
(
Calendar
.
DAY_OF_WEEK
))
%
7
;
...
...
@@ -94,7 +95,9 @@ public class FacilityPresenter {
if
(
o
.
getStartDay
()
<=
currentDay
&&
o
.
getEndDay
()
>=
currentDay
)
scheduleString
.
append
(
"<strong>"
);
scheduleString
.
append
(
"<b>"
+
parseIntToDay
(
o
.
getStartDay
())
+
"</b>: "
);
scheduleString
.
append
(
"<b>"
);
scheduleString
.
append
(
parseIntToDay
(
o
.
getStartDay
()));
scheduleString
.
append
(
"</b>: "
);
scheduleString
.
append
(
parseTo12HourTime
(
o
.
getStartTime
()));
scheduleString
.
append
(
" - "
);
scheduleString
.
append
(
parseTo12HourTime
(
o
.
getEndTime
()));
...
...
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