Speiseplan der Mensen der Georg-August-Universität Göttingen https://mensa.schneider-hosting.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
813 B

7 years ago
  1. <template>
  2. <div class="hello">
  3. <router-link :to="'/' + $route.params.mensa + '/heute'">Heute</router-link>
  4. <router-link :to="'/' + $route.params.mensa + '/morgen'">Morgen</router-link>
  5. <router-link :to="'/' + $route.params.mensa + '/uebermorgen'">Übermorgen</router-link>
  6. <p>{{$route.params.mensa}}</p>
  7. <router-view></router-view>
  8. </div>
  9. </template>
  10. <script>
  11. export default {
  12. name: 'mensa',
  13. data () {
  14. return {
  15. }
  16. },
  17. created () {
  18. if (!this.$route.params.tag) {
  19. this.$router.replace(`heute`)
  20. }
  21. }
  22. }
  23. </script>
  24. <!-- Add "scoped" attribute to limit CSS to this component only -->
  25. <style scoped>
  26. h1, h2 {
  27. font-weight: normal;
  28. }
  29. ul {
  30. list-style-type: none;
  31. padding: 0;
  32. }
  33. li {
  34. display: inline-block;
  35. margin: 0 10px;
  36. }
  37. a {
  38. color: #42b983;
  39. }
  40. </style>