mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-25 05:23:51 +00:00
Temporary adjusted mobile races overview - will be reverted when a
mobile race viewer is introduced
This commit is contained in:
1 parent
ea774cb6a9
commit
3baee85d1d
6 files changed
+53
-7
No files matched your search
+2
-1
@@ -84,7 +84,8 @@
|
||||
background: #008fcc;
|
||||
}
|
||||
.regattacompetition_phase_fleet_raceuntracked {
|
||||
background: #666;
|
||||
/* background: #666; */
|
||||
background: #f0ab00;
|
||||
}
|
||||
.regattacompetition_phase_fleet_raceuntracked .regattacompetition_phase_fleet_race_title:after {
|
||||
display: none;
|
||||
|
||||
+5
-3
@@ -40,9 +40,11 @@ public class RegattaCompetitionFleetRace extends UIObject {
|
||||
} else if (viewState == RaceViewState.PLANNED || viewState == RaceViewState.SCHEDULED) {
|
||||
anchor.addClassName(local_res.css().regattacompetition_phase_fleet_raceplanned());
|
||||
}
|
||||
if (trackingState != RaceTrackingState.TRACKED_VALID_DATA) {
|
||||
anchor.addClassName(local_res.css().regattacompetition_phase_fleet_raceuntracked());
|
||||
}
|
||||
// TODO: As long as there is no mobile race viewer, show all races as untracked (with different background-color)
|
||||
anchor.addClassName(local_res.css().regattacompetition_phase_fleet_raceuntracked());
|
||||
// if (trackingState != RaceTrackingState.TRACKED_VALID_DATA) {
|
||||
// anchor.addClassName(local_res.css().regattacompetition_phase_fleet_raceuntracked());
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
+4
-2
@@ -5,7 +5,9 @@
|
||||
<ui:with field="res" type="com.sap.sailing.gwt.home.mobile.resources.SharedResources" />
|
||||
<ui:with field="local_res" type="com.sap.sailing.gwt.home.mobile.partials.regattacompetition.RegattaCompetitionResources" />
|
||||
<a class="{local_res.css.regattacompetition_phase_fleet_race}" style="display:block; text-decoration:none;">
|
||||
<div class="{local_res.css.regattacompetition_phase_fleet_race_title}" ui:field="raceNameUi"></div>
|
||||
<div class="{local_res.css.regattacompetition_phase_fleet_race_subtitle}" ui:field="raceDateUi"></div>
|
||||
<div class="{local_res.css.regattacompetition_phase_fleet_race_title}" ui:field="raceNameUi"></div>
|
||||
<div class="{local_res.css.regattacompetition_phase_fleet_race_subtitle}" ui:field="raceDateUi">
|
||||
<ui:text from="{i18n.raceIsPlanned}" />
|
||||
</div>
|
||||
</a>
|
||||
</ui:UiBinder>
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
package com.sap.sailing.gwt.home.mobile.partials.regattacompetition;
|
||||
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.dom.client.Element;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
import com.sap.sailing.gwt.home.shared.partials.regattanavigation.RegattaNavigationResources;
|
||||
|
||||
public class TempMobileRaceStateLegend extends Widget {
|
||||
|
||||
private static RaceStateLegendUiBinder uiBinder = GWT.create(RaceStateLegendUiBinder.class);
|
||||
|
||||
interface RaceStateLegendUiBinder extends UiBinder<Element, TempMobileRaceStateLegend> {
|
||||
}
|
||||
|
||||
public TempMobileRaceStateLegend() {
|
||||
RegattaNavigationResources.INSTANCE.css().ensureInjected();
|
||||
setElement(uiBinder.createAndBindUi(this));
|
||||
}
|
||||
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
|
||||
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" xmlns:g="urn:import:com.google.gwt.user.client.ui">
|
||||
<ui:with field="i18n" type="com.sap.sailing.gwt.ui.client.StringMessages" />
|
||||
<ui:with field="i18n_ubi" type="com.sap.sailing.gwt.common.client.i18n.TextMessages"/>
|
||||
<ui:with field="res" type="com.sap.sailing.gwt.common.client.SharedResources" />
|
||||
<ui:with field="local_res" type="com.sap.sailing.gwt.home.shared.partials.regattanavigation.RegattaNavigationResources" />
|
||||
<div class="{local_res.css.regattanavigation_legend}">
|
||||
<div class="{local_res.css.regattanavigation_legend_item} {local_res.css.regattanavigation_legend_itemuntracked}"
|
||||
style="background-color:#f0ab00; border-color:#f0ab00;">
|
||||
<ui:text from='{i18n.raceIsFinished}' />
|
||||
</div>
|
||||
<div class="{local_res.css.regattanavigation_legend_item} {local_res.css.regattanavigation_legend_itemlive}">
|
||||
<ui:text from='{i18n.playModeLive}' />
|
||||
</div>
|
||||
<div class="{local_res.css.regattanavigation_legend_item} {local_res.css.regattanavigation_legend_itemplanned}">
|
||||
<ui:text from='{i18n.raceIsPlanned}' />
|
||||
</div>
|
||||
</div>
|
||||
</ui:UiBinder>
|
||||
+2
-1
@@ -19,7 +19,8 @@
|
||||
<g:HTMLPanel>
|
||||
<div class="{res.mediaCss.columns}">
|
||||
<div class="{res.mediaCss.small12} {style.pageTitle}"><ui:text from="{i18n.races}" /></div>
|
||||
<sp:regattanavigation.RaceStateLegend addStyleNames="{res.mediaCss.small12} {style.legend}"/>
|
||||
<mp:regattacompetition.TempMobileRaceStateLegend addStyleNames="{res.mediaCss.small12} {style.legend}" />
|
||||
<!-- <sp:regattanavigation.RaceStateLegend addStyleNames="{res.mediaCss.small12} {style.legend}"/> -->
|
||||
</div>
|
||||
<mp:regattacompetition.RegattaCompetition ui:field="regattaCompetitionUi" />
|
||||
</g:HTMLPanel>
|
||||
|
||||
Reference in new issue
Block a user