Subversion Repositories SmartDukaan

Rev

Rev 2209 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<!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'
  xmlns:mail='urn:import:in.shop2020.hotspot.dashbaord.client.inbox'>

  <ui:image field='logo' src='shop2020.jpg'/>

  <!-- IE6 cannot handle transparent png, which is what ImageResource creates -->
  <ui:data field='logoIe6Data' src='shop2020.jpg' />

  <ui:style>

  .statusDiv {
    text-align: right;
    margin: 1em;
  }

  .alertsDiv {
    text-align: left;
    margin-left: 400px;
    background-color: red;
    font-size: 20px;
    width: 100px;
  }
  
  .linksDiv {
    text-align: right;
  }
  
  

  @if user.agent ie6 {
    @url logoIe6 logoIe6Data;
    .logo {
      background-image: logoIe6;
      width: 140px;
      height: 75px;
      position: absolute;
    }
  } @else {
    @sprite .logo {
      gwt-image: 'logo';
      position: absolute;
    }
  }
  </ui:style>

  <g:HTMLPanel>
    <div class='{style.logo}'/>

        <div class='{style.alertsDiv}'>
            <g:Anchor href='javascript:;' ui:field='alertsCountLink'>Alerts</g:Anchor>
        </div>
        
    <div class="{style.statusDiv}">
      <div>
        <b><g:HTML ui:field='greetingLabel'>Aloha!</g:HTML></b>
      </div>

      <div class='{style.linksDiv}'>
        <g:Anchor href='javascript:;' ui:field='signOutLink'>Sign Out</g:Anchor>
        &nbsp;
        <g:Anchor href='javascript:;' ui:field='aboutLink'>About</g:Anchor>
      </div>
    </div>
  </g:HTMLPanel>
</ui:UiBinder>